Skip to content

Commit

Permalink
feat: optional properties and formatting improvements (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerAberbach authored Dec 8, 2024
1 parent 3e0a0c5 commit db040c7
Show file tree
Hide file tree
Showing 71 changed files with 487 additions and 287 deletions.
4 changes: 2 additions & 2 deletions src/arbitrary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export type BytesArbitrary = {

export type EnumArbitrary = {
type: `enum`
values: string[]
values: (string | number)[]
}

export type ArrayArbitrary = {
Expand All @@ -80,7 +80,7 @@ export type UnionArbitrary = {

export type RecordArbitrary = {
type: `record`
properties: Map<string, Arbitrary>
properties: Map<string, { arbitrary: Arbitrary; required: boolean }>
}

export type MergedArbitrary = {
Expand Down
Loading

0 comments on commit db040c7

Please sign in to comment.