Skip to content

Commit

Permalink
put back changes from main
Browse files Browse the repository at this point in the history
  • Loading branch information
dcb6 committed Jul 16, 2024
1 parent 3628f72 commit c04c991
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/ir-sdk/fern/apis/ir-types-latest/definition/ir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ types:
IntermediateRepresentation:
docs: "Complete representation of the API schema"
properties:
apiVersion: optional<ApiVersionScheme>
apiName:
type: commons.Name
docs: This is the human readable unique id for the API.
Expand Down Expand Up @@ -82,6 +83,22 @@ types:
language: string
sdkName: string
sdkVersion: string
ApiVersionScheme:
docs: |
The available set of versions for the API. This is used to generate a special
enum that can be used to specify the version of the API to use.
union:
header: HeaderApiVersionScheme
HeaderApiVersionScheme:
docs: |
The version information is sent as an HTTP header (e.g. X-API-Version) on every request.
If the enum does _not_ define a default value, the version should be treated like
a required global header parameter. The version header should also support any
environment variable scanning specified by the header.
properties:
header: http.HttpHeader
value: types.EnumTypeDeclaration
ErrorDiscriminationStrategy:
union:
statusCode: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ types:

EnumTypeDeclaration:
properties:
default: optional<EnumValue>
values: list<EnumValue>
EnumValue:
extends: commons.Declaration
Expand Down

0 comments on commit c04c991

Please sign in to comment.