I coded my api in API designer and it ran smoothly, no errors or anything.
I copy pasted my code into sublime and it gave me errors back.
In my examples.raml which is my trait file, I have
#examples.raml - bn_token: headers: bn_token: description: The user's bn_token that is used to authenticate. type: string required: true example: number - company_id: queryParameters: companyID: description: The CATM company ID. type: integer required: true example: number.
The error it gives me back is the first line needs #%RAML 0.8 but after i inserted that it points to my bn_token and states “Error: document must be a map”
In my main file I have:
traits: !include examples.raml