We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
properties
When generating a relationship, the related property is incorrectly placed at the root of the schema. This should be placed under properties.
Example: redbeard controller wolf -r sheep generates:
redbeard controller wolf -r sheep
{ ... "properties": { "id": { "type": "string", "faker": "random.uuid" }, "name": { "type": "string", "faker": "name.findName" } }, "sheep": { "type": "string", "faker": "random.uuid", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" }, "links": [ { "rel": "sheep", "href": "/sheep/{sheep}" } ], ... }
Should be:
{ ... "properties": { "id": { "type": "string", "faker": "random.uuid" }, "name": { "type": "string", "faker": "name.findName" }, "sheep": { "type": "string", "faker": "random.uuid", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" }, }, "links": [ { "rel": "sheep", "href": "/sheep/{sheep}" } ], ... }
The text was updated successfully, but these errors were encountered:
Fixed by #27
Sorry, something went wrong.
No branches or pull requests
When generating a relationship, the related property is incorrectly placed at the root of the schema. This should be placed under
properties
.Example:
redbeard controller wolf -r sheep
generates:Should be:
The text was updated successfully, but these errors were encountered: