Update swagger documentation

This commit is contained in:
Gaetan Craig-Riou
2023-12-14 15:29:12 +11:00
parent 4d52e169e2
commit a2cb1f4c37
3 changed files with 3 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ describe "CatalogItems", type: :request, swagger_doc: "dfc.yaml",
:base_product,
id: 90_000, supplier: enterprise, name: "Apple", description: "Red",
variants: [variant],
primary_taxon: build(:taxon, name: "Non local vegetable", dfc_name: "non_local_vegetable"),
)
}
let(:variant) { build(:base_variant, id: 10_001, unit_value: 1, sku: "AR") }

View File

@@ -29,6 +29,7 @@ describe "Enterprises", type: :request, swagger_doc: "dfc.yaml", rswag_autodoc:
:product_with_image,
id: 90_000, supplier: enterprise, name: "Apple", description: "Round",
variants: [variant],
primary_taxon: build(:taxon, name: "Non local vegetable", dfc_name: "non_local_vegetable"),
)
}
let(:variant) { build(:base_variant, id: 10_001, unit_value: 1, sku: "APP") }

View File

@@ -602,7 +602,7 @@ paths:
"@type": dfc-b:SuppliedProduct
dfc-b:name: Pesto - 1g
dfc-b:description: Basil Pesto
dfc-b:hasType: dfc-pt:non-local-vegetable
dfc-b:hasType: dfc-pt:processed-vegetable
dfc-b:hasQuantity:
"@type": dfc-b:QuantitativeValue
dfc-b:hasUnit: dfc-m:Gram