fix(schema): loosen agent color response
This commit is contained in:
parent
381f6c47b4
commit
a817fe5e6c
3 changed files with 14 additions and 4 deletions
|
|
@ -16,9 +16,7 @@ export type ID = typeof ID.Type
|
|||
export const Name = Schema.String.pipe(Schema.brand("Agent.Name"))
|
||||
export type Name = typeof Name.Type
|
||||
|
||||
export const Color = Schema.String.annotate({ identifier: "Agent.Color" }).check(
|
||||
Schema.isPattern(/^#[0-9a-fA-F]{6}$/),
|
||||
)
|
||||
export const Color = Schema.String.annotate({ identifier: "Agent.Color" })
|
||||
export type Color = typeof Color.Type
|
||||
|
||||
export interface Info extends Schema.Schema.Type<typeof Info> {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue