Skip to content

Commit

Permalink
add answer schema
Browse files Browse the repository at this point in the history
Co-authored-by: KtaK721 <[email protected]>
  • Loading branch information
instructr13 and KtaK721 committed Oct 5, 2024
1 parent 6e746e0 commit d815b84
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions packages/schemas/src/answer.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import type { tags } from "typia";

// Example schema
import typia, { type tags } from "typia";

export interface Answer {
n: number & tags.Type<"uint32">;
n: number & tags.Type<"uint32"> & tags.Maximum<320000>;
ops: Array<Ops> & tags.MaxItems<320000>;
}

export interface Ops {
p: number & tags.Type<"uint32"> & tags.Maximum<281>;
x: number & tags.Type<"int32"> & tags.Minimum<-255> & tags.Maximum<255>;
y: number & tags.Type<"int32"> & tags.Minimum<-255> & tags.Maximum<255>;
s: number & tags.Type<"uint32"> & tags.Maximum<3>;
}

0 comments on commit d815b84

Please sign in to comment.