Files
fastapi-openapi-to-postman/lib/bundleRules/spec20.js
Erik Mendoza 9500ea6bfa Refactoring bundle rules resolving 2.0, 3.0 and 3.1
- Moving data for each version to different files
- Generalizing rule resolvers for all versions
- Replacing each version getKeyInComponents to use the generalized one
- Removing all componentsParentMatcher files
- Updating new constant sources in bundle.js
2022-06-16 10:24:16 -05:00

34 lines
552 B
JavaScript

const SCHEMA_CONTAINERS = [
'schema',
'items',
'allOf',
'additionalProperties'
],
CONTAINERS = {
definitions: SCHEMA_CONTAINERS
},
DEFINITIONS = {
properties: 'definitions',
responses: 'responses'
},
INLINE = [
'examples'
],
COMPONENTS_KEYS = [
'definitions',
'parameters',
'responses',
'securityDefinitions'
],
ROOT_CONTAINERS_KEYS = COMPONENTS_KEYS;
module.exports = {
RULES_20: {
CONTAINERS,
DEFINITIONS,
COMPONENTS_KEYS,
INLINE,
ROOT_CONTAINERS_KEYS
}
};