Skip to content

Commit

Permalink
fix openapi names
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo-catalano committed Mar 6, 2024
1 parent b997509 commit af7fca2
Show file tree
Hide file tree
Showing 6 changed files with 185 additions and 175 deletions.
102 changes: 51 additions & 51 deletions openapi/openapi_fdrv1.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,21 @@
}
} ],
"responses" : {
"403" : {
"description" : "Forbidden"
"401" : {
"description" : "Unauthorized"
},
"200" : {
"description" : "OK",
"400" : {
"description" : "Bad Request",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ConfigDataV1"
"$ref" : "#/components/schemas/ProblemJson"
}
}
}
},
"400" : {
"description" : "Bad Request",
"500" : {
"description" : "Service unavailable",
"content" : {
"application/json" : {
"schema" : {
Expand All @@ -59,21 +59,21 @@
}
}
},
"500" : {
"description" : "Service unavailable",
"403" : {
"description" : "Forbidden"
},
"200" : {
"description" : "OK",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ProblemJson"
"$ref" : "#/components/schemas/ConfigDataV1"
}
}
}
},
"429" : {
"description" : "Too many requests"
},
"401" : {
"description" : "Unauthorized"
}
},
"security" : [ {
Expand All @@ -87,24 +87,21 @@
"summary" : "Get last v1 {stakeholder} cache version",
"operationId" : "idV1",
"responses" : {
"403" : {
"description" : "Forbidden"
"401" : {
"description" : "Unauthorized"
},
"400" : {
"description" : "Bad Request",
"200" : {
"description" : "OK",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ProblemJson"
"$ref" : "#/components/schemas/CacheVersion"
}
}
}
},
"404" : {
"description" : "Not Found"
},
"500" : {
"description" : "Service unavailable",
"400" : {
"description" : "Bad Request",
"content" : {
"application/json" : {
"schema" : {
Expand All @@ -113,21 +110,24 @@
}
}
},
"200" : {
"description" : "OK",
"500" : {
"description" : "Service unavailable",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/CacheVersion"
"$ref" : "#/components/schemas/ProblemJson"
}
}
}
},
"403" : {
"description" : "Forbidden"
},
"404" : {
"description" : "Not Found"
},
"429" : {
"description" : "Too many requests"
},
"401" : {
"description" : "Unauthorized"
}
},
"security" : [ {
Expand All @@ -138,6 +138,28 @@
},
"components" : {
"schemas" : {
"ProblemJson" : {
"type" : "object",
"properties" : {
"title" : {
"type" : "string",
"description" : "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable"
},
"status" : {
"maximum" : 600,
"minimum" : 100,
"type" : "integer",
"description" : "The HTTP status code generated by the origin server for this occurrence of the problem.",
"format" : "int32",
"example" : 200
},
"detail" : {
"type" : "string",
"description" : "A human readable explanation specific to this occurrence of the problem.",
"example" : "There was an error processing the request"
}
}
},
"BrokerCreditorInstitution" : {
"required" : [ "broker_code", "enabled", "extended_fault_bean" ],
"type" : "object",
Expand Down Expand Up @@ -983,28 +1005,6 @@
}
}
},
"ProblemJson" : {
"type" : "object",
"properties" : {
"title" : {
"type" : "string",
"description" : "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable"
},
"status" : {
"maximum" : 600,
"minimum" : 100,
"type" : "integer",
"description" : "The HTTP status code generated by the origin server for this occurrence of the problem.",
"format" : "int32",
"example" : 200
},
"detail" : {
"type" : "string",
"description" : "A human readable explanation specific to this occurrence of the problem.",
"example" : "There was an error processing the request"
}
}
},
"CacheVersion" : {
"required" : [ "version" ],
"type" : "object",
Expand Down
102 changes: 51 additions & 51 deletions openapi/openapi_nodev1.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,21 @@
}
} ],
"responses" : {
"403" : {
"description" : "Forbidden"
"401" : {
"description" : "Unauthorized"
},
"200" : {
"description" : "OK",
"400" : {
"description" : "Bad Request",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ConfigDataV1"
"$ref" : "#/components/schemas/ProblemJson"
}
}
}
},
"400" : {
"description" : "Bad Request",
"500" : {
"description" : "Service unavailable",
"content" : {
"application/json" : {
"schema" : {
Expand All @@ -59,21 +59,21 @@
}
}
},
"500" : {
"description" : "Service unavailable",
"403" : {
"description" : "Forbidden"
},
"200" : {
"description" : "OK",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ProblemJson"
"$ref" : "#/components/schemas/ConfigDataV1"
}
}
}
},
"429" : {
"description" : "Too many requests"
},
"401" : {
"description" : "Unauthorized"
}
},
"security" : [ {
Expand All @@ -87,24 +87,21 @@
"summary" : "Get last v1 {stakeholder} cache version",
"operationId" : "idV1",
"responses" : {
"403" : {
"description" : "Forbidden"
"401" : {
"description" : "Unauthorized"
},
"400" : {
"description" : "Bad Request",
"200" : {
"description" : "OK",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ProblemJson"
"$ref" : "#/components/schemas/CacheVersion"
}
}
}
},
"404" : {
"description" : "Not Found"
},
"500" : {
"description" : "Service unavailable",
"400" : {
"description" : "Bad Request",
"content" : {
"application/json" : {
"schema" : {
Expand All @@ -113,21 +110,24 @@
}
}
},
"200" : {
"description" : "OK",
"500" : {
"description" : "Service unavailable",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/CacheVersion"
"$ref" : "#/components/schemas/ProblemJson"
}
}
}
},
"403" : {
"description" : "Forbidden"
},
"404" : {
"description" : "Not Found"
},
"429" : {
"description" : "Too many requests"
},
"401" : {
"description" : "Unauthorized"
}
},
"security" : [ {
Expand All @@ -138,6 +138,28 @@
},
"components" : {
"schemas" : {
"ProblemJson" : {
"type" : "object",
"properties" : {
"title" : {
"type" : "string",
"description" : "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable"
},
"status" : {
"maximum" : 600,
"minimum" : 100,
"type" : "integer",
"description" : "The HTTP status code generated by the origin server for this occurrence of the problem.",
"format" : "int32",
"example" : 200
},
"detail" : {
"type" : "string",
"description" : "A human readable explanation specific to this occurrence of the problem.",
"example" : "There was an error processing the request"
}
}
},
"BrokerCreditorInstitution" : {
"required" : [ "broker_code", "enabled", "extended_fault_bean" ],
"type" : "object",
Expand Down Expand Up @@ -983,28 +1005,6 @@
}
}
},
"ProblemJson" : {
"type" : "object",
"properties" : {
"title" : {
"type" : "string",
"description" : "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable"
},
"status" : {
"maximum" : 600,
"minimum" : 100,
"type" : "integer",
"description" : "The HTTP status code generated by the origin server for this occurrence of the problem.",
"format" : "int32",
"example" : 200
},
"detail" : {
"type" : "string",
"description" : "A human readable explanation specific to this occurrence of the problem.",
"example" : "There was an error processing the request"
}
}
},
"CacheVersion" : {
"required" : [ "version" ],
"type" : "object",
Expand Down
Loading

0 comments on commit af7fca2

Please sign in to comment.