You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RAML 1.0 introduces fragment identifiers that go in the header/first line of RAML files, e.g. #%RAML 1.0 ResourceType. These are (mostly? entirely?) used for !include files, and are optional.
The text was updated successfully, but these errors were encountered:
Hi. Fragments are indeed mostly used with !include. The only exceptions (semantically) are:
Libraries (libraries are being referenced, not included)
Overlays
Extensions
You can include them via !include, but that would never really have a meaning and is invalid. But nothing should stop you to do it since it's just nature how !include works in general. Append all nodes from a file into this position.
What typed fragments introduce is for the parser to have a way to validate if a fragment, as it is, is valid or not.
RAML 1.0 introduces fragment identifiers that go in the header/first line of RAML files, e.g.
#%RAML 1.0 ResourceType
. These are (mostly? entirely?) used for!include
files, and are optional.The text was updated successfully, but these errors were encountered: