Created
June 19, 2020 16:37
-
-
Save eloycoto/35dec1cfc5643529cd0a2f2869fc37c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"definitions": { | |
"address": { | |
"type": "object", | |
"properties": { | |
"street_address": { | |
"type": "string" | |
} | |
}, | |
"required": [ | |
"street_address", | |
"city", | |
"state" | |
] | |
}, | |
"methods": { | |
"description": "Array of HTTP methods this rule must be applied to. If left blank it will be applied to all HTTP methods", | |
"type": "array", | |
"items": { | |
"type": "string", | |
"oneOf": [ | |
{ | |
"enum": [ | |
"GET" | |
], | |
"title": "GET" | |
}, | |
{ | |
"enum": [ | |
"POST" | |
], | |
"title": "POST" | |
}, | |
{ | |
"enum": [ | |
"PUT" | |
], | |
"title": "PUT" | |
}, | |
{ | |
"enum": [ | |
"PATCH" | |
], | |
"title": "PATCH" | |
}, | |
{ | |
"enum": [ | |
"DELETE" | |
], | |
"title": "DELETE" | |
}, | |
{ | |
"enum": [ | |
"HEAD" | |
], | |
"title": "HEAD" | |
}, | |
{ | |
"enum": [ | |
"OPTIONS" | |
], | |
"title": "OPTIONS" | |
} | |
] | |
} | |
} | |
}, | |
"type": "object", | |
"properties": { | |
"billing_address": { | |
"title": "Billing address", | |
"$ref": "#/definitions/address" | |
}, | |
"shipping_address": { | |
"title": "Shipping address", | |
"$ref": "#/definitions/methods" | |
}, | |
"query_args_commands": { | |
"description": "List of commands to apply to the query string args", | |
"type": "array", | |
"items": { | |
"type": "object", | |
"properties": { | |
"methods": { | |
"title": "METHODS", | |
"$ref": "#/definitions/methods" | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment