Closed GiovanniCardamone closed 1 year ago
on file: src/programmers/internal/application_object.ts:81
there is this snippet:
$id:
options.purpose === "ajv"
? options.prefix + "/" + key
: undefined,
as i can see it's only generated for "ajw", there is a reason why it's this way?
The $id
property does not supported in swagger.
If try to add the $id
property in any object definition, an error would be occured like below:
Bug Report
Summary
Hello, i'm using typia to generate dynamically from interfaces, my Definitions.
I have a file where i generate my definitions in this way:
and also this definition is passed to the swagger definition file.
now i want to reference my models using $id
https://json-schema.org/understanding-json-schema/basics.html#declaring-a-unique-identifier
but the output of the
typia.application
does not contains the $id for each schemathat's bad because doesn't allow me to reference my schema directly using something like:
also where
IJsonComponents
it's defined i can see there is a $id listed.is this planned to add or i should put manually the reference each time i want to use a schema?
Thankyou