F1: openapi.json regenerated from the merged API, client regenerated, training form types

The checked-in document listed routes the API no longer has; the inputs route now types its response, so the training form reads allowed by index and the schema type drops the JSON schema's own $defs.
This commit is contained in:
2026-12-01 12:19:18 -06:00
parent ec60f61704
commit 8d7464065d
4 changed files with 4 additions and 466 deletions
-448
View File
@@ -3000,26 +3000,6 @@
"title": "Source",
"type": "object"
},
"SourceRef": {
"properties": {
"args": {
"additionalProperties": true,
"default": {},
"title": "Args",
"type": "object"
},
"source": {
"pattern": "^[A-Za-z_][\\w.]*:[A-Za-z_]\\w*$",
"title": "Source",
"type": "string"
}
},
"required": [
"source"
],
"title": "SourceRef",
"type": "object"
},
"SourceType": {
"additionalProperties": false,
"properties": {
@@ -3647,93 +3627,6 @@
"title": "UserRead",
"type": "object"
},
"UserUpdate": {
"properties": {
"domains": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/Domain"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Domains"
},
"email": {
"anyOf": [
{
"format": "email",
"type": "string"
},
{
"type": "null"
}
],
"title": "Email"
},
"is_active": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Is Active"
},
"is_superuser": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Is Superuser"
},
"is_verified": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Is Verified"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name"
},
"password": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Password"
}
},
"title": "UserUpdate",
"type": "object"
},
"ValidationError": {
"properties": {
"ctx": {
@@ -4200,33 +4093,6 @@
"summary": "Health"
}
},
"/ingest/concept-maps": {
"get": {
"description": "Every ConceptMap a site saved: its id, latest version and when.",
"operationId": "concept_maps",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"items": {
"additionalProperties": true,
"type": "object"
},
"title": "Response Concept Maps",
"type": "array"
}
}
},
"description": "Successful Response"
}
},
"summary": "Concept Maps",
"tags": [
"ingest"
]
}
},
"/ingest/concept-maps/{map_id}": {
"get": {
"description": "A site's codes in platform terms (FHIR R4B ConceptMap), latest version.",
@@ -4796,52 +4662,6 @@
]
}
},
"/ingest/sources/resources": {
"post": {
"description": "What a source offers (a database's tables...): also tests that it can be reached.",
"operationId": "source_resources",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SourceRef"
}
}
},
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"items": {
"type": "string"
},
"title": "Response Source Resources",
"type": "array"
}
}
},
"description": "Successful Response"
},
"422": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
},
"description": "Validation Error"
}
},
"summary": "Source Resources",
"tags": [
"ingest"
]
}
},
"/ingest/sources/test": {
"post": {
"description": "\"Probar conexi\u00f3n\": reaches the source with the answers given. A database lists its\ntables (until one is picked; then its first rows); files and records show their first\nrows. Never a server error: what went wrong comes back in plain words.",
@@ -6809,80 +6629,6 @@
"tags": [
"users"
]
},
"patch": {
"operationId": "users:patch_current_user",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserUpdate"
}
}
},
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserRead"
}
}
},
"description": "Successful Response"
},
"400": {
"content": {
"application/json": {
"examples": {
"UPDATE_USER_EMAIL_ALREADY_EXISTS": {
"summary": "A user with this email already exists.",
"value": {
"detail": "UPDATE_USER_EMAIL_ALREADY_EXISTS"
}
},
"UPDATE_USER_INVALID_PASSWORD": {
"summary": "Password validation failed.",
"value": {
"detail": {
"code": "UPDATE_USER_INVALID_PASSWORD",
"reason": "Password should beat least 3 characters"
}
}
}
},
"schema": {
"$ref": "#/components/schemas/ErrorModel"
}
}
},
"description": "Bad Request"
},
"401": {
"description": "Missing token or inactive user."
},
"422": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
},
"description": "Validation Error"
}
},
"security": [
{
"APIKeyCookie": []
}
],
"summary": "Users:Patch Current User",
"tags": [
"users"
]
}
},
"/users/register": {
@@ -6958,200 +6704,6 @@
]
}
},
"/users/{id}": {
"delete": {
"operationId": "users:delete_user",
"parameters": [
{
"in": "path",
"name": "id",
"required": true,
"schema": {
"title": "Id",
"type": "string"
}
}
],
"responses": {
"204": {
"description": "Successful Response"
},
"401": {
"description": "Missing token or inactive user."
},
"403": {
"description": "Not a superuser."
},
"404": {
"description": "The user does not exist."
},
"422": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
},
"description": "Validation Error"
}
},
"security": [
{
"APIKeyCookie": []
}
],
"summary": "Users:Delete User",
"tags": [
"users"
]
},
"get": {
"operationId": "users:user",
"parameters": [
{
"in": "path",
"name": "id",
"required": true,
"schema": {
"title": "Id",
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserRead"
}
}
},
"description": "Successful Response"
},
"401": {
"description": "Missing token or inactive user."
},
"403": {
"description": "Not a superuser."
},
"404": {
"description": "The user does not exist."
},
"422": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
},
"description": "Validation Error"
}
},
"security": [
{
"APIKeyCookie": []
}
],
"summary": "Users:User",
"tags": [
"users"
]
},
"patch": {
"operationId": "users:patch_user",
"parameters": [
{
"in": "path",
"name": "id",
"required": true,
"schema": {
"title": "Id",
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserUpdate"
}
}
},
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserRead"
}
}
},
"description": "Successful Response"
},
"400": {
"content": {
"application/json": {
"examples": {
"UPDATE_USER_EMAIL_ALREADY_EXISTS": {
"summary": "A user with this email already exists.",
"value": {
"detail": "UPDATE_USER_EMAIL_ALREADY_EXISTS"
}
},
"UPDATE_USER_INVALID_PASSWORD": {
"summary": "Password validation failed.",
"value": {
"detail": {
"code": "UPDATE_USER_INVALID_PASSWORD",
"reason": "Password should beat least 3 characters"
}
}
}
},
"schema": {
"$ref": "#/components/schemas/ErrorModel"
}
}
},
"description": "Bad Request"
},
"401": {
"description": "Missing token or inactive user."
},
"403": {
"description": "Not a superuser."
},
"404": {
"description": "The user does not exist."
},
"422": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
},
"description": "Validation Error"
}
},
"security": [
{
"APIKeyCookie": []
}
],
"summary": "Users:Patch User",
"tags": [
"users"
]
}
},
"/{domain}/fhir": {
"post": {
"description": "A standard hospital's Bundle: checked as FHIR, kept as sent in the sender's inbox,\nand placed by the sender's pipeline (a run starts; follow it at the Location).",