Skip to content

Commit

Permalink
(feature): Add primitive types and default value to EnumType (#1184)
Browse files Browse the repository at this point in the history
  • Loading branch information
amckinney authored Jul 24, 2024
1 parent 9d189ec commit 3955e98
Show file tree
Hide file tree
Showing 84 changed files with 3,489 additions and 66 deletions.
61 changes: 53 additions & 8 deletions fern/apis/fdr/definition/api/v1/read/type.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ types:

TypeReference:
union:
id: TypeId
id: TypeReferenceId
primitive: PrimitiveType
optional: OptionalType
list: ListType
Expand All @@ -33,6 +33,15 @@ types:
literal: LiteralType
unknown: {}

TypeReferenceId:
properties:
value: TypeId
default: optional<TypeReferenceIdDefault>

TypeReferenceIdDefault:
union:
enum: string

ObjectType:
properties:
extends: list<TypeId>
Expand All @@ -52,13 +61,16 @@ types:
union:
integer: IntegerType
double: DoubleType
long: {}
string: StringType
boolean: {}
datetime: {}
uuid: {}
base64: {}
date: {}
long: LongType
boolean: BooleanType
datetime: DatetimeType
uuid: UuidType
base64: Base64Type
date: DateType
bigInteger: BigIntegerType
uint: {}
uint64: {}

IntegerType:
properties:
Expand All @@ -79,6 +91,36 @@ types:
maxLength: optional<integer>
default: optional<string>

LongType:
properties:
minimum: optional<long>
maximum: optional<long>
default: optional<long>

BooleanType:
properties:
default: optional<boolean>

DatetimeType:
properties:
default: optional<datetime>

UuidType:
properties:
default: optional<uuid>

Base64Type:
properties:
default: optional<base64>

DateType:
properties:
default: optional<date>

BigIntegerType:
properties:
default: optional<bigint>

OptionalType:
properties:
itemType: TypeReference
Expand All @@ -99,10 +141,13 @@ types:

EnumType:
properties:
default: optional<string>
values: list<EnumValue>

EnumValue:
extends: commons.WithDescription
extends:
- commons.WithDescription
- commons.WithAvailability
properties:
value: string

Expand Down
57 changes: 50 additions & 7 deletions fern/apis/fdr/definition/api/v1/register/type.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ types:

TypeReference:
union:
id: TypeId
id: TypeReferenceId
primitive: PrimitiveType
optional: OptionalType
list: ListType
Expand All @@ -33,6 +33,15 @@ types:
literal: LiteralType
unknown: {}

TypeReferenceId:
properties:
value: TypeId
default: optional<TypeReferenceIdDefault>

TypeReferenceIdDefault:
union:
enum: string

ObjectType:
properties:
extends: list<TypeId>
Expand All @@ -52,13 +61,16 @@ types:
union:
integer: IntegerType
double: DoubleType
long: {}
string: StringType
boolean: {}
datetime: {}
uuid: {}
base64: {}
date: {}
long: LongType
boolean: BooleanType
datetime: DatetimeType
uuid: UuidType
base64: Base64Type
date: DateType
bigInteger: BigIntegerType
uint: {}
uint64: {}

IntegerType:
properties:
Expand All @@ -79,6 +91,36 @@ types:
maxLength: optional<integer>
default: optional<string>

LongType:
properties:
minimum: optional<long>
maximum: optional<long>
default: optional<long>

BooleanType:
properties:
default: optional<boolean>

DatetimeType:
properties:
default: optional<datetime>

UuidType:
properties:
default: optional<uuid>

Base64Type:
properties:
default: optional<base64>

DateType:
properties:
default: optional<date>

BigIntegerType:
properties:
default: optional<bigint>

OptionalType:
properties:
itemType: TypeReference
Expand All @@ -99,6 +141,7 @@ types:

EnumType:
properties:
default: optional<string>
values: list<EnumValue>

EnumValue:
Expand Down
2 changes: 1 addition & 1 deletion packages/fdr-sdk/src/client/generated/.fernignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3955e98

Please sign in to comment.