JSPM

  • Created
  • Published
  • Downloads 41
  • Score
    100M100P100Q73916F
  • License Apache-2.0

Package Exports

  • @emdgroup/tapir

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@emdgroup/tapir) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

tapir

Generate TypeScript assertions and type guards from OpenAPI specs

Synopsis

npm install --global @emdgroup/tapir
tapir openapi.yml > types.ts

Supported Input Validation

  • Core Types: boolean, string, number, integer
    • enum
  • Objects:
    • required
    • allOf and oneOf
    • additionalProperties with a boolean
  • Arrays:
    • items

Not supported

  • Any Type
  • Core Types: boolean, string, number, integer
    • minLength
    • maxLength
    • minimum
    • maximum
    • exclusiveMinimum
    • exclusiveMaximum
    • multipleOf
    • format
    • not
    • nullable
    • pattern
    • readOnly
    • writeOnly
  • Objects:
    • additionalProperties with a schema
    • minProperties
    • maxProperties
    • anyOf
    • xml
  • Arrays:
    • minItems
    • maxItems
    • uniqueItems