MCPcopy Index your code
hub / github.com/Effect-TS/effect / expectJSONSchemaProperty

Function expectJSONSchemaProperty

packages/effect/test/Schema/JSONSchema.test.ts:77–84  ·  view source on GitHub ↗
(
  schema: Schema.Schema<A, I>,
  expected: object,
  params?: fc.Parameters<[I]>
)

Source from the content-addressed store, hash-verified

75}
76
77const expectJSONSchemaProperty = <A, I>(
78 schema: Schema.Schema<A, I>,
79 expected: object,
80 params?: fc.Parameters<[I]>
81) => {
82 const jsonSchema = expectJSONSchema(schema, expected)
83 expectProperty(schema, jsonSchema, params)
84}
85
86const expectJSONSchemaAnnotations = <A, I>(
87 schema: Schema.Schema<A, I>,

Callers 2

JSONSchema.test.tsFile · 0.85

Calls 2

expectJSONSchemaFunction · 0.85
expectPropertyFunction · 0.70

Tested by

no test coverage detected