diff --git a/documentation/OpenApi/openapi.yaml b/documentation/OpenApi/openapi.yaml index f333c2c..b6d7dc1 100644 --- a/documentation/OpenApi/openapi.yaml +++ b/documentation/OpenApi/openapi.yaml @@ -769,18 +769,21 @@ components: preparationAdvices: type: string tips: - type: string - nullable: true + type: + - string + - 'null' example: Servir chaud sellFamilly: - type: string - nullable: true + type: + - string + - 'null' example: Volaille ingredients: $ref: '#/components/schemas/IncoIngredients' portions: - $ref: '#/components/schemas/IncoPortionAmount' - nullable: true + oneOf: + - $ref: '#/components/schemas/IncoPortionAmount' + - type: 'null' allergens: type: array items: @@ -790,29 +793,35 @@ components: isSeasonal: type: boolean weight: - $ref: '#/components/schemas/IncoWeight' - nullable: true + oneOf: + - $ref: '#/components/schemas/IncoWeight' + - type: 'null' nutriscore: - $ref: '#/components/schemas/IncoNutriscore' - nullable: true + oneOf: + - $ref: '#/components/schemas/IncoNutriscore' + - type: 'null' storageCondition: - $ref: '#/components/schemas/IncoStorageCondition' - nullable: true + oneOf: + - $ref: '#/components/schemas/IncoStorageCondition' + - type: 'null' additives: type: array items: $ref: '#/components/schemas/IncoAdditive' compo: - type: string - nullable: true + type: + - string + - 'null' pattern: '^\d{1,}$' createdAt: - type: string - nullable: true + type: + - string + - 'null' format: date-time updatedAt: - type: string - nullable: true + type: + - string + - 'null' format: date-time IncoWeight: @@ -966,12 +975,14 @@ components: type: string example: Poulet RĂ´ti Classe A createdAt: - type: string - nullable: true + type: + - string + - 'null' format: date-time updatedAt: - type: string - nullable: true + type: + - string + - 'null' format: date-time IncoCompo: