6.0.1 • Published 2 months ago
@agreed/typed v6.0.1
agreed-typed
- agreed api type definitions (types.ts)
- agreed.ts to swagger generator
install
$ npm install -g agreed-typed
usage
$ agreed-typed --help
Usage: agreed-typed [subcommand] [options]
Subcommands:
gen-swagger Generate swagger file.
Options:
--help Shows the usage and exits.
--version Shows version number and exits.
Examples:
agreed-typed gen-swagger --path ./agreed.ts
gen-swagger
$ agreed-typed gen-swagger --help
Usage: agreed-typed gen-swagger [options]
Options:
--path Agreed file path (required)
--title swagger title
--description swagger description
--version document version
--depth aggregate depth (default = 2)
--dry-run dry-run mode (outputs on stdout)
--output output filename (default schema.json)
--host swagger host (default localhost:3030)
--format file format [json|yaml] (default json)
--help show help
Examples:
agreed-typed gen-swagger --path ./agreed.ts --output schema # output file = schema.json
agreed-typed gen-swagger --path ./agreed.ts --output schema --format yaml # output file = schema.yaml
Annotations
Validations
http://json-schema.org/latest/json-schema-validation.html
- multipleOf
- maximum
- exclusiveMaximum
- minimum
- exclusiveMinimum
- maxLength
- minLength
- pattern
- maxItems
- minItems
- uniqueItems
- maxProperties
- minProperties
- additionalProperties
- enum
- type
- examples
- ignore
- description
- format
- default
- $ref
- id
License
This project is licensed under the Apache License 2.0 License - see the LICENSE file for details
6.0.1
2 months ago
6.0.0
2 months ago
5.3.1
2 years ago
5.3.2-alpha.0
2 years ago
5.3.0
2 years ago
5.2.1
3 years ago
5.2.0
3 years ago
5.1.10
4 years ago
5.1.9
4 years ago
5.1.8
4 years ago
5.1.7
4 years ago
5.1.6
4 years ago
5.1.5
4 years ago
5.1.4
4 years ago
5.1.3
4 years ago
5.1.2
4 years ago
5.1.1
4 years ago
5.1.0
4 years ago
5.0.4
4 years ago
5.0.2
4 years ago
5.0.1
4 years ago
5.0.0
4 years ago
0.2.2
4 years ago
0.1.0
4 years ago
0.0.6
5 years ago
0.0.5
5 years ago
0.0.4
5 years ago
0.0.3
5 years ago
0.0.1
5 years ago