medea icon indicating copy to clipboard operation
medea copied to clipboard

parameterized schema

Open Benjmhart opened this issue 2 years ago • 0 comments

it would be useful to have higher order types defined which can be supplied with a parameter, such as:

$schema wrapper<a>
    $type
        $object
    $property-name "tag"
    $property-schema $string
    $property-name "contents"
    $property-schema a

and this could then be applied in the following manner or similar:

$schema $start
   $type
         wrapper otherSchema

or

    $property-schema wrapper otherSchema

This is particularly relevant when dealing with protocols where a default wrapper shape is mandatory across many request/response types. in my case, JsonWSP.

especially combined with the modular schema feature request this would allow us to express the

Benjmhart avatar Dec 30 '21 18:12 Benjmhart