Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mwadams authored Nov 29, 2024
1 parent 2796b7e commit f9614fd
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,31 @@ You can mix-and-match YAML and JSON documents in the same schema set, and the to

Your JSON schema can be embedded in a YAML document (such as a YAML-based OpenAPI or AsyncAPI document), and you can resolve internal references just as with a JSON document.

Add the `--yaml` command line option to enable YAML support, or set the `supportYaml: true` property in a generator config file.
Add the `--yaml` command line option to enable YAML support, or set the `supportYaml: true` property in a generator config file

#### Example

*schema.yaml*
```yaml
type: array
prefixItems:
- $ref: ./positiveInt32.yaml
- type: string
- type: string
format: date-time
unevaluatedItems: false
```
*positiveInt32.yaml*
```yaml
type: integer
format: int32
minimum: 0
```
```
generatejsonschematypes --rootNamespace TestYaml --outputPath .\Model --yaml schema.yaml
```

## V4.0 Updates

Expand Down

0 comments on commit f9614fd

Please sign in to comment.