-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
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
Repeated or duplicated properties in schemas #287
Comments
@sitetester I agree for nested objects, it is nice and clean to just use the |
Hi, thank you for asking question & clarifying ambiguity!
It's all good like this. We should avoid repetition as much as possible. |
Nice, thanks for the reference. I will update the LIP accordingly. |
I think we could do the same change for the block header schema https://github.com/LiskHQ/lips/blob/main/proposals/lip-0055.md#unsigned-block-header-json-schema. I generalized the issue name accordingly. |
https://github.com/LiskHQ/lips/blob/main/proposals/lip-0061.md#schema
Just like in LIP 45, we used
...
notation to merge external schema, we can do the same here to merge repeated properties fromunsignedCertificateSchema
One example:
https://github.com/LiskHQ/lips/blob/main/proposals/lip-0045.md#data-3
Also we can add this text below updated schema:
Here, the ... notation, borrowed from JavaScript ES6 data destructuring, indicates that the corresponding schema should be inserted in place, and it is just used for notational convenience.
Note: Above text is taken from https://github.com/LiskHQ/lips/blob/main/proposals/lip-0045.md#genesis-assets-schema, which is written under the schema.
The text was updated successfully, but these errors were encountered: