mirror of
https://github.com/latentPrion/cppbessot.git
synced 2026-04-17 18:44:23 +00:00
Add the test-sample schemas
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,4 +1,3 @@
|
|||||||
# Ignore any directory named `db` or `build` anywhere in this repository.
|
# Ignore any directory named `db` or `build` anywhere in this repository.
|
||||||
**/db/
|
|
||||||
**/build/
|
**/build/
|
||||||
/b-*/
|
/b-*/
|
||||||
|
|||||||
95
db/test-schema-v1.1/openapi/openapi.yaml
Normal file
95
db/test-schema-v1.1/openapi/openapi.yaml
Normal file
@@ -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"
|
||||||
101
db/test-schema-v1.2/openapi/openapi.yaml
Normal file
101
db/test-schema-v1.2/openapi/openapi.yaml
Normal file
@@ -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"
|
||||||
Reference in New Issue
Block a user