in reply to Mojolicious::Plugin::OpenAPI strict or filter object representation

Hi, I am not sure if the Mojo plugin supports it but the OpenAPI attribute for this IIUC is additionalProperties. There's also additionalItems for arrays.

Hope this helps!


The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^2: Mojolicious::Plugin::OpenAPI strict or filter object representation
by Veltro (Hermit) on Mar 25, 2019 at 11:40 UTC

    Thanks 1nickt, that solved the validation issues.

    I did read about additionalProperties in the OpenAPI spec. But they did not mention that you can just simply add additionalProperties=false. I found a better description here where they clearly state:

    The additionalProperties keyword may be either a boolean or an object. If additionalProperties is a boolean and set to false, no additional properties will be allowed.

    Veltro