mattpolzin / OpenAPIKit

Codable Swift OpenAPI implementation.
MIT License
281 stars 35 forks source link

store component name as x-component-name when locally dereferencing an object. #295

Closed mattpolzin closed 1 year ago

mattpolzin commented 1 year ago

When locally dereferencing things, store a vendor extension that keeps track of the Component name the thing used to have. This vendor extension is just a string value stored under the x-component-name key.

Everything that currently gets dereferenced except for JSONSchema gains this extension. JSONSchema needs work still before it supports vendor extensions at all.