-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
@types endpoint specs #110
Comments
Just FYI: I already documented our discussion from the sprint here: #89 |
I've been working on implementing this in https://github.com/pyrenees/plone.dexterity/tree/master/plone/dexterity/serialize. Things need to be reorganized a bit, but most of it's there.
|
@ebrehault Can you elaborate on the placeholders/help messages items? Are these currently exposed in dexterity/zope.schema? |
@esteele The help message is basically the |
Nested schemas are just custom properties of JSON Schemas which are available for referencing. But they are only seen as schemas if they are referenced. For example : {
"nested": {
"type": "string",
"minLength": 2
},
"properties": {
"name": {"$ref":"#/nested"}
}
} I propose to use the following structure as it would not interfere with the way JSON Schema is intended to be used. {
"$schema": "http://json-schema.org/draft-04/hyper-schema#",
"type": "object",
"properties": {
"username": {
"type": "string"
},
"email": {
"type": "string",
"format": "email"
},
"creditCardNumber": {
"type": "string",
"pattern": "[0-9]{13,16}"
}
},
"fieldsets": [{
"id": "part_1",
"title": "Registration",
"fields": ["username", "email"]
},
{
"id": "part_2",
"title": "Payment",
"fields": ["creditCardNumber"]
}],
"required": ["username", "email", "creditCardNumber"],
"links": [{
"title": "Cancel",
"description": "Cancel the transaction",
"href": "test",
"rel": "action"
},
{
"title": "Cancel",
"description": "Cancel the transaction",
"href": "somewhere",
"rel": "action"
}]
} Where |
Just to keep somewhere what we discussed at Barcelona Sprint with @tisto and @vangheem:
The text was updated successfully, but these errors were encountered: