1.2.1 • Published 3 years ago

oas3ts-generator v1.2.1

Weekly downloads
152
License
ISC
Repository
-
Last release
3 years ago

OAS3TS Generator

...

Automated tests

Never commit something that breaks the build! You can easily prevent this by linking the test script as a git pre-commit hook!

like this:

ln test .git/hooks/pre-commit

models

One of the things this generator does is emit models.

Models are emitted for schema's that have type object and that are custom objects. Models are emitted as interfaces and should never have inline types. Instead they should reference eachother.

we need two functions. One that emits the declarations as interfaces. One that resolves names for the interfaces so they can be referenced.

request component models

One model per content-type.

suffixed with RequestBodyComponentApplicationJson

response component models

One model per content-type.

suffixed with ResponseBodyComponentApplicationJson

schema models

Can be referenced by name via #/components/schema/name.

suffixed with SchemaComponent

property models

If they are part of an object that can be refenced, they can be referenced by name via #/components/.../properties/name.

suffixed with Property

oneOf (union)) models

suffixed with OneOf1

allOf (intersection)) models

suffixed with AllOf1

items (array element) models

suffixed with Item

additional property (map value) models

suffixed with AdditionalProperty

request parameters

Parameters for a request

suffixed with RequestParameters

request models

The body for a request

One model per content-type.

suffixed with RequestBodyApplicationJson

response models

The body for a response

One model per status, per content-type.

suffixed with ResponseBody200ApplicationJson

1.2.0

3 years ago

1.2.1

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.2

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.13.0

3 years ago

0.13.1

3 years ago

0.12.3

3 years ago

0.12.2

3 years ago

0.12.1

3 years ago

0.12.0

3 years ago

0.11.1

3 years ago

0.10.3

3 years ago

0.10.4

3 years ago

0.10.2

3 years ago

0.10.1

3 years ago

0.10.0

3 years ago

0.9.7

3 years ago

0.9.6

3 years ago

0.9.5

3 years ago

0.9.4

3 years ago

0.9.3

3 years ago

0.9.2

3 years ago

0.9.1

3 years ago

0.9.0

3 years ago

0.8.1

3 years ago

0.8.3

3 years ago

0.8.2

3 years ago

0.8.0

3 years ago

0.7.5

3 years ago

0.7.2

3 years ago

0.7.3

3 years ago

0.7.1

3 years ago

0.7.0

3 years ago

0.6.0

3 years ago

0.5.0

3 years ago

0.4.4

3 years ago

0.4.3

3 years ago

0.4.1

3 years ago

0.4.2

3 years ago

0.4.0

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.12

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.9

4 years ago

0.1.4

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.3

4 years ago