oapi-codegen
oapi-codegen copied to clipboard
Fix missing tests from #1389
Removed from https://github.com/deepmap/oapi-codegen/pull/1389 for time, was:
+++ internal/test/issues/issue-1378/bionicle.yaml
@@ -0,0 +1,45 @@
+openapi: 3.0.1
+
+info:
+ title: Test
+ description: Test
+ version: 1.0.0
+
+paths:
+ /bionicle/{name}:
+ get:
+ parameters:
+ # TODO
+ # - $ref: "common.yaml#/components/parameters/tracingId"
+ - $ref: "#/components/parameters/bionicleName"
+++ internal/test/issues/issue-1378/common.yaml
@@ -0,0 +1,25 @@
+openapi: 3.0.1
+
+info:
+ title: Test
+ description: Test
+ version: 1.0.0
+
+components:
+ schemas:
+ ErrTracingIdNotSent:
+ type: object
+ properties:
+ code:
+ type: string
+ required:
+ - code
+ # TODO
+ # parameters:
+ # tracingId:
+ # name: Tracing-Id
+ # in: header
+ # required: true
+ # schema:
+ # type: string
+ # format: uuid
We should make sure this actually works, as it appears to be introducing multiple package imports.