Closed marcoarthur closed 4 years ago
I don't understand how that is a valid spec. I don't see "date-time" in the table here: https://swagger.io/specification/#data-types
Can you point me to where the spec says "type" can be "date-time"?
Hi @jhthorsen ,
Thanks to point out that the Spec is faulty. So I will link this issue so maybe they (https://github.com/emissions-api) would change the Spec. But meanwhile what is the approach to M::P::OpenAPI so I can accept this type ? I mean what is the important bits of code so I can extend the M::P::OpenAPI ? thks in advance
Since the discussion is getting the Spec right, I will close this issue. Thks again to point me out swagger specification.
The only way I can think of is if you use Mojo::UserAgent to download the spec and then rewrite $c->req->json, before passing it to the OpenAPI plugin.
(“url” can be a hash-ref)
I think I would just download it, rewrite it, place it somewhere locally and load it from file.
Running this script that use this spec
I got this error trying to list the routes (
perl emissions.pl routes
)The validator on https://validator.swagger.io/ says it is a correct Spec.