openapi-to-postmanv2
Version:
Convert a given OpenAPI specification to Postman Collection v2.0
36 lines (34 loc) • 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
}
};