danielgtaylor / danielgtaylor/aglio

Is it possible to use Generic Named Types (decorators)?

Open
#326 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
CoffeeScript
Stars
4.7k
Forks
471
PR merge metrics
No merged PRs in 30d

Description

Is it possible to use Generic Named Types as described here: https://github.com/apiaryio/mson/blob/master/MSON%20Specification.md

and here:
https://apiblueprint.org/documentation/mson/specification.html#53-generic-named-type

example:

# Address Decorator (*T*)
- address

# Person (object)
- `first_name`
- `last_name`

Use as:

- `decorated_person` (Address Decorator(Person))

Implies the same structure as:

- decorated_person (object)
- `first_name`
- `last_name`
- address

When I use it in my document, aglio throws the following error:

message: 'Error parsing input: base type \'Address Decorator(Person)\' is not defined in the document'

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.