Marcel van Lohuizen | 7b7ccdd | 2019-07-03 13:33:03 +0200 | [diff] [blame] | 1 | { |
| 2 | "openapi": "3.0.0", |
| 3 | "info": { |
| 4 | "title": "test", |
| 5 | "version": "v1" |
| 6 | }, |
Eric Adlam | 9b70cf3 | 2019-09-28 11:45:31 -0400 | [diff] [blame] | 7 | "paths": {}, |
Marcel van Lohuizen | 7b7ccdd | 2019-07-03 13:33:03 +0200 | [diff] [blame] | 8 | "components": { |
Marcel van Lohuizen | 0a97533 | 2019-07-04 10:43:25 +0200 | [diff] [blame] | 9 | "schemas": { |
Marcel van Lohuizen | 7b7ccdd | 2019-07-03 13:33:03 +0200 | [diff] [blame] | 10 | "MyStruct": { |
| 11 | "type": "object", |
| 12 | "required": [ |
| 13 | "mediumNum", |
| 14 | "smallNum", |
| 15 | "float", |
Jason Wang | 2b56efa | 2019-08-21 13:35:53 -0700 | [diff] [blame] | 16 | "double", |
| 17 | "deprecatedField" |
Marcel van Lohuizen | 7b7ccdd | 2019-07-03 13:33:03 +0200 | [diff] [blame] | 18 | ], |
| 19 | "properties": { |
Marcel van Lohuizen | 7b7ccdd | 2019-07-03 13:33:03 +0200 | [diff] [blame] | 20 | "mediumNum": { |
| 21 | "type": "integer", |
| 22 | "format": "int32" |
| 23 | }, |
| 24 | "smallNum": { |
| 25 | "type": "integer" |
Marcel van Lohuizen | c89f5a6 | 2019-07-04 10:41:18 +0200 | [diff] [blame] | 26 | }, |
| 27 | "float": { |
| 28 | "type": "number", |
| 29 | "format": "float" |
| 30 | }, |
| 31 | "double": { |
| 32 | "type": "number", |
| 33 | "format": "double" |
Jason Wang | 2b56efa | 2019-08-21 13:35:53 -0700 | [diff] [blame] | 34 | }, |
| 35 | "deprecatedField": { |
| 36 | "type": "string", |
| 37 | "format": "string", |
| 38 | "deprecated": true |
Marcel van Lohuizen | 7b7ccdd | 2019-07-03 13:33:03 +0200 | [diff] [blame] | 39 | } |
| 40 | } |
| 41 | } |
| 42 | } |
| 43 | } |
| 44 | } |