mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
36 lines
580 B
JavaScript
36 lines
580 B
JavaScript
const SCHEMA_CONTAINERS = [
|
|
'schema',
|
|
'items',
|
|
'allOf',
|
|
'additionalProperties'
|
|
],
|
|
CONTAINERS = {
|
|
definitions: SCHEMA_CONTAINERS
|
|
},
|
|
DEFINITIONS = {
|
|
properties: 'definitions',
|
|
responses: 'responses'
|
|
},
|
|
INLINE = [
|
|
'examples',
|
|
'value',
|
|
'example'
|
|
],
|
|
COMPONENTS_KEYS = [
|
|
'definitions',
|
|
'parameters',
|
|
'responses',
|
|
'securityDefinitions'
|
|
],
|
|
ROOT_CONTAINERS_KEYS = COMPONENTS_KEYS;
|
|
|
|
module.exports = {
|
|
RULES_20: {
|
|
CONTAINERS,
|
|
DEFINITIONS,
|
|
COMPONENTS_KEYS,
|
|
INLINE,
|
|
ROOT_CONTAINERS_KEYS
|
|
}
|
|
};
|