Skip to content

Commit

Permalink
Remove empty components
Browse files Browse the repository at this point in the history
  • Loading branch information
bonjourmauko committed Dec 7, 2022
1 parent 19d52e8 commit 4660596
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions openfisca_web_api/openAPI.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
openapi: "3.0.0"
openapi: "3.1.0"

info:
title: "{COUNTRY_PACKAGE_NAME} Web API"
Expand Down Expand Up @@ -61,7 +61,6 @@ components:
format: "string"
source:
type: "string"
example: null

Parameters:
type: "object"
Expand Down Expand Up @@ -108,7 +107,6 @@ components:
- "Boolean"
- "Date"
- "String"
example: null

Variables:
type: "object"
Expand Down Expand Up @@ -139,8 +137,8 @@ components:
type: "object"
additionalProperties:
$ref: "#/components/schemas/Value"
# 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
# pattern: "^[12][0-9]{3}-[01][0-9]-[0-3][0-9]$" # all keys are ISO dates
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
pattern: "^[12][0-9]{3}-[01][0-9]-[0-3][0-9]$" # all keys are ISO dates

Value:
oneOf:
Expand All @@ -166,6 +164,7 @@ components:
type: "object"
additionalProperties:
$ref: "#/components/schemas/Roles"

Roles:
type: "object"
properties:
Expand All @@ -176,10 +175,6 @@ components:
plural:
type: "string"

SituationInput: null

SituationOutput: null

Trace:
type: "object"
properties:
Expand All @@ -206,7 +201,6 @@ components:
type: "object"
additionalProperties:
type: "object"
example: null

headers:
Country-Package:
Expand All @@ -225,7 +219,7 @@ paths:
post:
summary: "Run a simulation"
tags:
- Calculations
- "Calculations"
operationId: "calculate"
requestBody:
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"
Expand Down

0 comments on commit 4660596

Please sign in to comment.