Skip to content

Instantly share code, notes, and snippets.

@marcselman
Created May 8, 2024 12:36
Show Gist options
  • Save marcselman/78b1516e5a15c92da70a31c851c11c6c to your computer and use it in GitHub Desktop.
Save marcselman/78b1516e5a15c92da70a31c851c11c6c to your computer and use it in GitHub Desktop.
Breaking OpenAPI
{
"openapi": "3.0.0",
"info": {
"title": "Demonstration",
"version": "2023.11.0",
"description": "Demonstration"
},
"tags": [
{
"name": "Demo"
}
],
"paths": {
},
"components": {
"schemas": {
"MixLog": {
"type": "object",
"properties": {
"id": {
"$ref": "#/components/schemas/uuid"
},
"description": {
"type": "string"
},
"mixDate": {
"type": "string",
"format": "date-time"
},
"shopId": {
"$ref": "#/components/schemas/uuid"
},
"totalPrice": {
"type": "number",
"format": "float",
"nullable": true
},
"totalRecalculations": {
"type": "integer",
"format": "int32"
},
"totalOverPoors": {
"type": "integer",
"format": "int32"
},
"totalSkips": {
"type": "integer",
"format": "int32"
},
"totalUnderPours": {
"type": "integer",
"format": "int32"
},
"formulaVersionDate": {
"type": "string",
"format": "date-time"
},
"someCode": {
"type": "string",
"nullable": true,
"description": "SomeCode is only required for color mixes"
},
"batchNumber": {
"type": "string"
},
"brandCode": {
"type": "string",
"description": "BrandCode is only required for non-color mixes"
},
"brandId": {
"type": "string",
"description": "BrandId is only required for color mixes"
},
"brandName": {
"type": "string",
"description": "BrandName is only required for color mixes"
},
"categoryCode": {
"type": "string",
"description": "CategoryCode is not used anymore"
},
"color": {
"type": "string",
"description": "Color is only required for color mixes"
},
"colorDescription": {
"type": "string"
},
"comment": {
"type": "string"
},
"commercialProductCode": {
"type": "string"
},
"productLineCode": {
"type": "string",
"description": "ProductLineCode is only required for color mixes"
},
"country": {
"type": "string"
},
"createdBy": {
"type": "string"
},
"createdByFirstName": {
"type": "string"
},
"createdByLastName": {
"type": "string"
},
"deltaECalculationRepaired": {
"type": "string"
},
"deltaECalculationSprayout": {
"type": "string"
},
"ownColorVariantNumber": {
"type": "integer",
"format": "int32",
"nullable": true
},
"primerProductId": {
"type": "string",
"nullable": true
},
"productId": {
"type": "string",
"description": "ProductId is only required for color mixes"
},
"productName": {
"type": "string",
"description": "ProductName is only required for color mixes"
},
"selectedVersionIndex": {
"type": "integer",
"format": "int32"
}
},
"required": [
"id",
"description",
"mixDate",
"totalRecalculations",
"totalOverPoors",
"totalSkips",
"totalUnderPours",
"formulaVersionDate"
]
},
"uuid": {
"type": "string",
"format": "uuid"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment