Coder Social home page Coder Social logo

mrm-task-openapi's Introduction

mrm-task-openapi

Mrm task that creates and infers OpenAPI specification with values from package.json.

What it does

  • Populates OpenAPI Info Object
    • Populates title string field with name field in package.json.
    • Populates description string field with description field in package.json.
    • Populates license License Object field with license field in package.json.
      • Only supports SPDX license identifiers.
      • Multiple licenses are not supported in OpenAPI specification which means SPDX multi-license expressions (e.g. (ISC OR MIT)) is not supported.
    • Populates version string field with version field in package.json.
    • Populates contact Contact Object field with author field in package.json.

Usage

npx mrm openapi

Options

openapiFile (default: openapi.yaml)

Location of the OpenAPI specification file.

openapiVersion (default: taken from openapi field in openapiFile contents or fallback to 3.1.0)

OpenAPI specification version. See all versions.

title (default: taken from name field in package.json)

Title of the API. Does not override existing title in the OpenAPI specification file unless the field is deleted or override configuration is set.

description (default: taken from description field in package.json)

A description of the API. Does not override existing description in the OpenAPI specification file unless the field is deleted or override configuration is set.

version (default: taken from version field in package.json)

The version of the OpenAPI document. Always overrides version in the OpenAPI Info Object unless override configuration is set otherwise.

license (default: taken from license field in package.json)

The license information for the exposed API. Must be in SPDX license identifier format. If set to NONE or UNLICENSED, this field will NOT be populated in the specification file. Always overrides license License Object unless override configuration is set otherwise.

contact (default: taken from author field in package.json or npm or Git config)

The contact information for the exposed API. Does not override existing contact Contact Object in the OpenAPI specification file unless the field is deleted or override configuration is set.

override (default: version,license)

Comma delimited string of field names to override with value from package.json every time this task runs.

spdxLicenseDataVersion (default: 3.17)

Version string for SPDX license list database.

Changelog

The changelog can be found on the Releases page.

Contributing

Everyone is welcome to contribute. Please take a moment to review the contributing guidelines.

Authors and license

Andrew Jo and contributors.

BSD 3-Clause License, see the included LICENSE.md file.

mrm-task-openapi's People

Contributors

andrewjo avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.