-
Notifications
You must be signed in to change notification settings - Fork 10
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
Misc comments #17
Comments
Hi @fosrias (cc @smizell) great questions! Now that I'm back from SpringOne, I can address them :) Please see inline:
The only real reason is I assume parsers might need to know how to parse the document before they start reading bytes. We could always add it as a supported meta field, maybe
The available field members were purposefully defined to be as similar (where possible) to what HTML 5 supports so transliteration between the two - highly desirable for forms/field data models - could be possible. HTML 5 has no such true default concept: it just has a As far as
It is to to allow the same behavior in a user agent (if desired or supported by the user agent) as what the HTML 5
Ack - please open a PR if I don't get to it first?
I didn't use uppercase terminology because I didn't want any requirement semantics to be present. It is more of a note that "hey, if you see a nested form, it may not be a linked form, so be aware of that". And you're right about examples and nested forms potentially being confusing. They exist to allow complex object graph definitions to be created and submitted. For example, assume a REST endpoint is expecting a JSON submission that looks like the following: {
"user": {
"givenName": "Joe",
"surname": "Smith",
"address": {
"street1": "1234 Anywhere Street",
"street2": "Suite 5000",
"city": "Anytown",
"state": "Florida",
"postalCode": 12345,
"country": "US"
},
"employer": {
"name": "GreatCompany, Inc",
"address": {
"street1": "9876 Company Street",
"city": "Anytown",
"state": "Florida",
"postalCode": 12345,
"country": "US"
}
}
}
} In order for a REST client to submit this representation, it needs to know the This is much more powerful than HTML forms which only realistically support 'flat' data models - not strong enough IMO for a general purpose data interchange format. Does this make sense? Any issues you see with this?
Ack - please issue a PR if you can.
The sentence as written makes sense to me - I'm trying to get across the point that, even if there are multiple nested forms, the entire object graph is submitted to the single top-most form linked location. Does this make sense? If not, any suggestion on how to re-word it?
Agreed - good catch. PR please :) (and if you don't, it's ok, I'm just using
Definitely fair point, but it's a bit hard for me to see what you mean here. Can you please offer a PR with suggested edits so I can see the kind of changes you have in mind?
Ack. PR.
Ack - I haven't checked myself yet and was wondering what we should mandate/specify. It turns out HTML5 mandates the JavaScript Pattern definition:
I'm good with using this if it makes the most sense.
It basically again is intended to do what user agents in HTML do today. You can 'view source' and still see the raw value. Is this something that you think we need to change for Ion?
The Metadata Registry doesn't define link relation types, so I'm a bit confused by this statement :)
I'm not against it, I was just defaulting to HTTP for convenience. How would you define this section if we were to go beyond HTTP? Could you submit a PR?
I initially chose |
The following links in blame mode so I can reference explicit lines in your .adoc file.
Is there a reason for not supporting using a version member optionally in the top-level meta object of a root object? I can see a lot of advantages to that in that the content is self-versioning with the default being 1 if absent. Future versions could use it. Some interesting discussions around this in JSON API spec if you search on version.
default
Form Field Member Type and Form Field Options Types?Think it would be useful. May want a
selected
as well. That could be implied by the value being set, so may not be necessary.Is this
default
? If so, I would call it that. If not, this is really confusing what it is for.Need to correct HATEOS to be HATEOAS in the link name.
Find this a bit confusing. Seems like this should be reworded to be SHOULD NOT or possibly it is MUST NOT. I have seen people use MAY NOT even though is not in RFC2119 as the MAY implies that aspect. Another option.
Also, I find the exceptions discussion in the forms section about nested forms really hard to picture. I think you need to create some examples. My mind in that whole section goes "WTF, skip."
I think getting some "MUST ignore" wording in here for emphasis would help.
Location singular? Or reword? Something not english here.
data is redundant. How about "preferred format for data exchange."
I find these exceptions or constraints just being text not really stand out as constraints. I think if I was a client developer, it would be really easy to miss these variations. I think it would be good throughout the document to consistently show these constraints as bullets or numbered lists or something to make them really clear to client library implementers and consumers.
You do it in some places, but not consistently IMO.
Here and elsewhere.
may => MAY
Reference the variant of RegEx? Too lazy to look up, but probably could find in HTML5 spec. Ignore this if they don't do it.
I think the wording should be bolstered to get across the idea that they must not render the value. However, it seems to me that anyone with a browser can introspect the underlying API call and see the payload. So, not sure if this makes sense with respect to not showing the value delivered. If it is meant to hide it when filling in, may want to clarify. Maybe I misunderstand.
You probably should mention the spec does not modify the registered meanings of these relation types and the information is just to clarify their use in ion.
Not going to accommodate non-http protocols and methods?
IMO,
returns
is more intuitive and simple.The text was updated successfully, but these errors were encountered: