Skip to content

Commit

Permalink
Update FastAPI version
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed May 29, 2022
1 parent 634dc3c commit 82572cc
Show file tree
Hide file tree
Showing 4 changed files with 331 additions and 154 deletions.
109 changes: 67 additions & 42 deletions openapi/index_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,12 @@
"title": "Version",
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",
"type": "string",
"description": "A string containing the full version number of the API served at that versioned base URL.\nThe version number string MUST NOT be prefixed by, e.g., 'v'.\nExamples: `1.0.0`, `1.0.0-rc.2`."
"description": "A string containing the full version number of the API served at that versioned base URL.\nThe version number string MUST NOT be prefixed by, e.g., 'v'.\nExamples: `1.0.0`, `1.0.0-rc.2`.",
"examples": [
"0.10.1",
"1.0.0-rc.2",
"1.2.3-rc.5+develop"
]
}
},
"description": "A JSON object containing information about an available API version"
Expand Down Expand Up @@ -505,12 +510,16 @@
"id": {
"title": "Id",
"type": "string",
"description": "An entry's ID as defined in section Definition of Terms.\n\n- **Type**: string.\n\n- **Requirements/Conventions**:\n - **Support**: MUST be supported by all implementations, MUST NOT be `null`.\n - **Query**: MUST be a queryable property with support for all mandatory filter features.\n - **Response**: REQUIRED in the response.\n\n- **Examples**:\n - `\"db/1234567\"`\n - `\"cod/2000000\"`\n - `\"cod/2000000@1234567\"`\n - `\"nomad/L1234567890\"`\n - `\"42\"`"
"description": "An entry's ID as defined in section Definition of Terms.\n\n- **Type**: string.\n\n- **Requirements/Conventions**:\n - **Support**: MUST be supported by all implementations, MUST NOT be `null`.\n - **Query**: MUST be a queryable property with support for all mandatory filter features.\n - **Response**: REQUIRED in the response.\n\n- **Examples**:\n - `\"db/1234567\"`\n - `\"cod/2000000\"`\n - `\"cod/2000000@1234567\"`\n - `\"nomad/L1234567890\"`\n - `\"42\"`",
"x-optimade-support": "must",
"x-optimade-queryable": "must"
},
"type": {
"title": "Type",
"type": "string",
"description": "The name of the type of an entry.\n\n- **Type**: string.\n\n- **Requirements/Conventions**:\n - **Support**: MUST be supported by all implementations, MUST NOT be `null`.\n - **Query**: MUST be a queryable property with support for all mandatory filter features.\n - **Response**: REQUIRED in the response.\n - MUST be an existing entry type.\n - The entry of type `<type>` and ID `<id>` MUST be returned in response to a request for `/<type>/<id>` under the versioned base URL.\n\n- **Example**: `\"structures\"`"
"description": "The name of the type of an entry.\n\n- **Type**: string.\n\n- **Requirements/Conventions**:\n - **Support**: MUST be supported by all implementations, MUST NOT be `null`.\n - **Query**: MUST be a queryable property with support for all mandatory filter features.\n - **Response**: REQUIRED in the response.\n - MUST be an existing entry type.\n - The entry of type `<type>` and ID `<id>` MUST be returned in response to a request for `/<type>/<id>` under the versioned base URL.\n\n- **Example**: `\"structures\"`",
"x-optimade-support": "must",
"x-optimade-queryable": "must"
},
"links": {
"title": "Links",
Expand Down Expand Up @@ -561,13 +570,17 @@
"immutable_id": {
"title": "Immutable Id",
"type": "string",
"description": "The entry's immutable ID (e.g., an UUID). This is important for databases having preferred IDs that point to \"the latest version\" of a record, but still offer access to older variants. This ID maps to the version-specific record, in case it changes in the future.\n\n- **Type**: string.\n\n- **Requirements/Conventions**:\n - **Support**: OPTIONAL support in implementations, i.e., MAY be `null`.\n - **Query**: MUST be a queryable property with support for all mandatory filter features.\n\n- **Examples**:\n - `\"8bd3e750-b477-41a0-9b11-3a799f21b44f\"`\n - `\"fjeiwoj,54;@=%<>#32\"` (Strings that are not URL-safe are allowed.)"
"description": "The entry's immutable ID (e.g., an UUID). This is important for databases having preferred IDs that point to \"the latest version\" of a record, but still offer access to older variants. This ID maps to the version-specific record, in case it changes in the future.\n\n- **Type**: string.\n\n- **Requirements/Conventions**:\n - **Support**: OPTIONAL support in implementations, i.e., MAY be `null`.\n - **Query**: MUST be a queryable property with support for all mandatory filter features.\n\n- **Examples**:\n - `\"8bd3e750-b477-41a0-9b11-3a799f21b44f\"`\n - `\"fjeiwoj,54;@=%<>#32\"` (Strings that are not URL-safe are allowed.)",
"x-optimade-support": "optional",
"x-optimade-queryable": "must"
},
"last_modified": {
"title": "Last Modified",
"type": "string",
"description": "Date and time representing when the entry was last modified.\n\n- **Type**: timestamp.\n\n- **Requirements/Conventions**:\n - **Support**: SHOULD be supported by all implementations, i.e., SHOULD NOT be `null`.\n - **Query**: MUST be a queryable property with support for all mandatory filter features.\n - **Response**: REQUIRED in the response unless the query parameter `response_fields` is present and does not include this property.\n\n- **Example**:\n - As part of JSON response format: `\"2007-04-05T14:30:20Z\"` (i.e., encoded as an [RFC 3339 Internet Date/Time Format](https://tools.ietf.org/html/rfc3339#section-5.6) string.)",
"format": "date-time"
"format": "date-time",
"x-optimade-support": "should",
"x-optimade-queryable": "must"
}
},
"description": "Contains key-value pairs representing the entry's properties."
Expand Down Expand Up @@ -639,9 +652,9 @@
"title": "About",
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 65536,
"minLength": 1,
"type": "string",
"format": "uri"
},
{
Expand Down Expand Up @@ -760,9 +773,9 @@
"title": "Homepage",
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 65536,
"minLength": 1,
"type": "string",
"format": "uri"
},
{
Expand All @@ -775,9 +788,9 @@
"title": "Source Url",
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 65536,
"minLength": 1,
"type": "string",
"format": "uri"
},
{
Expand All @@ -799,9 +812,9 @@
"title": "Issue Tracker",
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 65536,
"minLength": 1,
"type": "string",
"format": "uri"
},
{
Expand Down Expand Up @@ -843,7 +856,12 @@
"title": "Api Version",
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",
"type": "string",
"description": "Presently used full version of the OPTIMADE API.\nThe version number string MUST NOT be prefixed by, e.g., \"v\".\nExamples: `1.0.0`, `1.0.0-rc.2`."
"description": "Presently used full version of the OPTIMADE API.\nThe version number string MUST NOT be prefixed by, e.g., \"v\".\nExamples: `1.0.0`, `1.0.0-rc.2`.",
"examples": [
"0.10.1",
"1.0.0-rc.2",
"1.2.3-rc.5+develop"
]
},
"available_api_versions": {
"title": "Available Api Versions",
Expand Down Expand Up @@ -1101,7 +1119,9 @@
"id": {
"title": "Id",
"type": "string",
"description": "An entry's ID as defined in section Definition of Terms.\n\n- **Type**: string.\n\n- **Requirements/Conventions**:\n - **Support**: MUST be supported by all implementations, MUST NOT be `null`.\n - **Query**: MUST be a queryable property with support for all mandatory filter features.\n - **Response**: REQUIRED in the response.\n\n- **Examples**:\n - `\"db/1234567\"`\n - `\"cod/2000000\"`\n - `\"cod/2000000@1234567\"`\n - `\"nomad/L1234567890\"`\n - `\"42\"`"
"description": "An entry's ID as defined in section Definition of Terms.\n\n- **Type**: string.\n\n- **Requirements/Conventions**:\n - **Support**: MUST be supported by all implementations, MUST NOT be `null`.\n - **Query**: MUST be a queryable property with support for all mandatory filter features.\n - **Response**: REQUIRED in the response.\n\n- **Examples**:\n - `\"db/1234567\"`\n - `\"cod/2000000\"`\n - `\"cod/2000000@1234567\"`\n - `\"nomad/L1234567890\"`\n - `\"42\"`",
"x-optimade-support": "must",
"x-optimade-queryable": "must"
},
"type": {
"title": "Type",
Expand Down Expand Up @@ -1174,9 +1194,9 @@
"title": "Base Url",
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 65536,
"minLength": 1,
"type": "string",
"format": "uri"
},
{
Expand All @@ -1189,9 +1209,9 @@
"title": "Homepage",
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 65536,
"minLength": 1,
"type": "string",
"format": "uri"
},
{
Expand Down Expand Up @@ -1408,9 +1428,9 @@
"title": "Homepage",
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 65536,
"minLength": 1,
"type": "string",
"format": "uri"
},
{
Expand Down Expand Up @@ -1493,9 +1513,9 @@
"title": "Self",
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 65536,
"minLength": 1,
"type": "string",
"format": "uri"
},
{
Expand All @@ -1508,9 +1528,9 @@
"title": "Related",
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 65536,
"minLength": 1,
"type": "string",
"format": "uri"
},
{
Expand Down Expand Up @@ -1593,9 +1613,9 @@
"title": "Self",
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 65536,
"minLength": 1,
"type": "string",
"format": "uri"
},
{
Expand Down Expand Up @@ -1629,7 +1649,12 @@
"title": "Api Version",
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",
"type": "string",
"description": "Presently used full version of the OPTIMADE API.\nThe version number string MUST NOT be prefixed by, e.g., \"v\".\nExamples: `1.0.0`, `1.0.0-rc.2`."
"description": "Presently used full version of the OPTIMADE API.\nThe version number string MUST NOT be prefixed by, e.g., \"v\".\nExamples: `1.0.0`, `1.0.0-rc.2`.",
"examples": [
"0.10.1",
"1.0.0-rc.2",
"1.2.3-rc.5+develop"
]
},
"more_data_available": {
"title": "More Data Available",
Expand All @@ -1640,9 +1665,9 @@
"title": "Schema",
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 65536,
"minLength": 1,
"type": "string",
"format": "uri"
},
{
Expand Down Expand Up @@ -1772,9 +1797,9 @@
"title": "Self",
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 65536,
"minLength": 1,
"type": "string",
"format": "uri"
},
{
Expand All @@ -1787,9 +1812,9 @@
"title": "Related",
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 65536,
"minLength": 1,
"type": "string",
"format": "uri"
},
{
Expand All @@ -1802,9 +1827,9 @@
"title": "First",
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 65536,
"minLength": 1,
"type": "string",
"format": "uri"
},
{
Expand All @@ -1817,9 +1842,9 @@
"title": "Last",
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 65536,
"minLength": 1,
"type": "string",
"format": "uri"
},
{
Expand All @@ -1832,9 +1857,9 @@
"title": "Prev",
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 65536,
"minLength": 1,
"type": "string",
"format": "uri"
},
{
Expand All @@ -1847,9 +1872,9 @@
"title": "Next",
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 65536,
"minLength": 1,
"type": "string",
"format": "uri"
},
{
Expand Down

0 comments on commit 82572cc

Please sign in to comment.