haimkastner / unitsnet-js

A better way to hold unit variables and easily convert to the destination unit
https://www.npmjs.com/package/unitsnet-js
MIT License
25 stars 8 forks source link

CORS Error in OpenAPI Spec Example #39

Closed Shentoza closed 6 months ago

Shentoza commented 6 months ago

When trying to execute the OpenAPI Spec Example I'm getting a CORS issue. image

Specs:

https://haimkastner.github.io/unitsnet-openapi-spec-example/

haimkastner commented 6 months ago

Hey @Shentoza,

I didn't mean to make it a "live" example, but just to demonstrate how the DTO is represented in the OpenAPI spec.

But... since you asked so nicely :) and it's extremely simple to do, I added it...

You can now make the call and get a real random DTO unit value representing (always) 10 meters.

Enjoy.