Closed chopptimus closed 3 years ago
If I have a body schema that looks like this
{:PetMetadata s/Any :Name s/Str :Age s/Int}
and the value of :PetMetadata happens to include the keys :age or :name, those keys will be "unaliased". For instance:
:PetMetadata
:age
:name
(def martian (m/bootstrap "https://thepetshopboys.co.uk" [{:route-name :add-pet :method :get :path-parts ["/add-pet"] :body-schema {:payload {:PetMetadata s/Any :Name s/Str :Age s/Int}}}])) (m/request-for martian :add-pet {:PetMetadata {:age 3} :Age 3 :Name "Roger Rabbit"}) => {:method :get, :url "https://thepetshopboys.co.uk/add-pet", :body {:PetMetadata {:Age 3}, :Name "Roger Rabbit", :Age 3}}
If I have a body schema that looks like this
and the value of
:PetMetadata
happens to include the keys:age
or:name
, those keys will be "unaliased". For instance: