From cab4e79656a7be69f91e0c751022bfe40ab55cbb Mon Sep 17 00:00:00 2001 From: Hayodea Hekol Date: Mon, 2 Mar 2026 23:51:13 -0400 Subject: [PATCH] Add the test-sample schemas --- .gitignore | 1 - db/test-schema-v1.1/openapi/openapi.yaml | 95 +++++++++++++++++++++ db/test-schema-v1.2/openapi/openapi.yaml | 101 +++++++++++++++++++++++ 3 files changed, 196 insertions(+), 1 deletion(-) create mode 100644 db/test-schema-v1.1/openapi/openapi.yaml create mode 100644 db/test-schema-v1.2/openapi/openapi.yaml diff --git a/.gitignore b/.gitignore index affd9a6..7b20ffb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ # Ignore any directory named `db` or `build` anywhere in this repository. -**/db/ **/build/ /b-*/ diff --git a/db/test-schema-v1.1/openapi/openapi.yaml b/db/test-schema-v1.1/openapi/openapi.yaml new file mode 100644 index 0000000..c601e4e --- /dev/null +++ b/db/test-schema-v1.1/openapi/openapi.yaml @@ -0,0 +1,95 @@ +openapi: 3.0.3 +info: + title: cppbessot-test-schema-v1.1 + version: "1.1.0" + description: > + Self-contained test fixture for cppbessot serdes and migration validation. +paths: {} +components: + schemas: + Agent: + type: object + x-odbModelVersion: "1, 1" + x-odbTable: Agent + required: + - id + - role + - persistent + properties: + id: + type: string + x-odbId: true + x-odbAddedIn: "1.1" + role: + type: string + x-odbAddedIn: "1.1" + persistent: + type: boolean + x-odbAddedIn: "1.1" + displayName: + type: string + x-odbAddedIn: "1.1" + + GovernmentAddress: + type: object + x-odbModelVersion: "1, 1" + x-odbTable: GovernmentAddress + required: + - id + properties: + id: + type: string + x-odbId: true + x-odbAddedIn: "1.1" + addressLabel: + type: string + x-odbAddedIn: "1.1" + regionLookupKey: + type: string + x-odbAddedIn: "1.1" + + TripAttemptResult: + type: object + x-odbModelVersion: "1, 1" + x-odbTable: TripAttemptResult + required: + - id + - result + properties: + id: + type: string + x-odbId: true + x-odbAddedIn: "1.1" + result: + type: string + x-odbAddedIn: "1.1" + retryReason: + type: string + x-odbAddedIn: "1.1" + governmentSuspensionReason: + type: string + x-odbAddedIn: "1.1" + governmentTerminationReason: + type: string + x-odbAddedIn: "1.1" + complianceSuspensionReason: + type: string + x-odbAddedIn: "1.1" + complianceTerminationReason: + type: string + x-odbAddedIn: "1.1" + policySuspensionReason: + type: string + x-odbAddedIn: "1.1" + policyTerminationReason: + type: string + x-odbAddedIn: "1.1" + cancelationReason: + type: string + x-odbAddedIn: "1.1" + failureReason: + type: string + x-odbAddedIn: "1.1" + details: + type: string + x-odbAddedIn: "1.1" diff --git a/db/test-schema-v1.2/openapi/openapi.yaml b/db/test-schema-v1.2/openapi/openapi.yaml new file mode 100644 index 0000000..ab1b006 --- /dev/null +++ b/db/test-schema-v1.2/openapi/openapi.yaml @@ -0,0 +1,101 @@ +openapi: 3.0.3 +info: + title: cppbessot-test-schema-v1.2 + version: "1.2.0" + description: > + Self-contained additive test fixture for cppbessot serdes and migration validation. +paths: {} +components: + schemas: + Agent: + type: object + x-odbModelVersion: "1, 2" + x-odbTable: Agent + required: + - id + - role + - persistent + properties: + id: + type: string + x-odbId: true + x-odbAddedIn: "1.1" + role: + type: string + x-odbAddedIn: "1.1" + persistent: + type: boolean + x-odbAddedIn: "1.1" + displayName: + type: string + x-odbAddedIn: "1.1" + trustScore: + type: integer + format: int32 + minimum: 0 + maximum: 100 + x-odbAddedIn: "1.2" + + GovernmentAddress: + type: object + x-odbModelVersion: "1, 2" + x-odbTable: GovernmentAddress + required: + - id + properties: + id: + type: string + x-odbId: true + x-odbAddedIn: "1.1" + addressLabel: + type: string + x-odbAddedIn: "1.1" + regionLookupKey: + type: string + x-odbAddedIn: "1.1" + + TripAttemptResult: + type: object + x-odbModelVersion: "1, 2" + x-odbTable: TripAttemptResult + required: + - id + - result + properties: + id: + type: string + x-odbId: true + x-odbAddedIn: "1.1" + result: + type: string + x-odbAddedIn: "1.1" + retryReason: + type: string + x-odbAddedIn: "1.1" + governmentSuspensionReason: + type: string + x-odbAddedIn: "1.1" + governmentTerminationReason: + type: string + x-odbAddedIn: "1.1" + complianceSuspensionReason: + type: string + x-odbAddedIn: "1.1" + complianceTerminationReason: + type: string + x-odbAddedIn: "1.1" + policySuspensionReason: + type: string + x-odbAddedIn: "1.1" + policyTerminationReason: + type: string + x-odbAddedIn: "1.1" + cancelationReason: + type: string + x-odbAddedIn: "1.1" + failureReason: + type: string + x-odbAddedIn: "1.1" + details: + type: string + x-odbAddedIn: "1.1"