Skip to content

Commit 8505670

Browse files
committed
Remove empty components
1 parent bb80685 commit 8505670

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

openfisca_web_api/openAPI.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
openapi: "3.0.0"
1+
openapi: "3.1.0"
22

33
info:
44
title: "{COUNTRY_PACKAGE_NAME} Web API"
@@ -61,7 +61,6 @@ components:
6161
format: "string"
6262
source:
6363
type: "string"
64-
example: null
6564

6665
Parameters:
6766
type: "object"
@@ -108,7 +107,6 @@ components:
108107
- "Boolean"
109108
- "Date"
110109
- "String"
111-
example: null
112110

113111
Variables:
114112
type: "object"
@@ -139,8 +137,8 @@ components:
139137
type: "object"
140138
additionalProperties:
141139
$ref: "#/components/schemas/Value"
142-
# propertyNames: # this keyword is part of JSON Schema but is not supported in OpenAPI Specification at the time of writing, see https://swagger.io/docs/specification/data-models/keywords/#unsupported
143-
# pattern: "^[12][0-9]{3}-[01][0-9]-[0-3][0-9]$" # all keys are ISO dates
140+
propertyNames: # this keyword is part of JSON Schema but is not supported in OpenAPI Specification at the time of writing, see https://swagger.io/docs/specification/data-models/keywords/#unsupported
141+
pattern: "^[12][0-9]{3}-[01][0-9]-[0-3][0-9]$" # all keys are ISO dates
144142

145143
Value:
146144
oneOf:
@@ -166,6 +164,7 @@ components:
166164
type: "object"
167165
additionalProperties:
168166
$ref: "#/components/schemas/Roles"
167+
169168
Roles:
170169
type: "object"
171170
properties:
@@ -176,10 +175,6 @@ components:
176175
plural:
177176
type: "string"
178177

179-
SituationInput: null
180-
181-
SituationOutput: null
182-
183178
Trace:
184179
type: "object"
185180
properties:
@@ -206,7 +201,6 @@ components:
206201
type: "object"
207202
additionalProperties:
208203
type: "object"
209-
example: null
210204

211205
headers:
212206
Country-Package:
@@ -225,7 +219,7 @@ paths:
225219
post:
226220
summary: "Run a simulation"
227221
tags:
228-
- Calculations
222+
- "Calculations"
229223
operationId: "calculate"
230224
requestBody:
231225
description: "Describe the situation (persons and entities). Add the variable you wish to calculate in the proper entity, with null as the value. Learn more in our official documentation: https://openfisca.org/doc/openfisca-web-api/input-output-data.html"

0 commit comments

Comments
 (0)