Created
November 25, 2018 01:59
-
-
Save chamilad/245ad49ca2570e7212580fc1bc3c6133 to your computer and use it in GitHub Desktop.
The JSON Schema for a sample request format for an API CI/CD story
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
{ | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"type": "object", | |
"properties": { | |
"username": { | |
"type": "string" | |
}, | |
"department": { | |
"type": "string" | |
}, | |
"apis": { | |
"type": "array", | |
"items": [ | |
{ | |
"type": "object", | |
"properties": { | |
"name": { | |
"type": "string" | |
}, | |
"description": { | |
"type": "string" | |
}, | |
"context": { | |
"type": "string" | |
}, | |
"version": { | |
"type": "string" | |
} | |
}, | |
"required": [ | |
"name", | |
"description", | |
"context", | |
"version" | |
] | |
} | |
] | |
} | |
}, | |
"required": [ | |
"username", | |
"department", | |
"apis" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment