The tool used for validating swagger 2.0 schemata does not currently support deep-nested definitions from other files. Until it does, keep the definitions in a separate file each in a definitions folder. This will be replaced with a definitions.yaml in the future.
7 lines
No EOL
100 B
YAML
7 lines
No EOL
100 B
YAML
type: object
|
|
properties:
|
|
errcode:
|
|
type: string
|
|
error:
|
|
type: string
|
|
required: ["errcode"] |