danielgtaylor / danielgtaylor/aglio

Why using custom example generator instead of relying on protagonist output?

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

Description

https://github.com/danielgtaylor/aglio/commit/c14f143d2bc1495ca418ff8b2938c2594fe21ad6 this commit is a source of such problem:

```
# Foo

# Data Structures

## Test (object)
+ One Of
+ Properties
+ A: x (enum, required)
+ B: x (required, string)
+ Properties
+ A: y (enum, required)
+ C: y (required, string)
+ Properties
+ A: z (enum, required)

# GET /foo
+ Response 200 (application/json)
+ Attributes (Test)

```

Such doc gives `{"A": "x"}` as an example instead of `{"A": "x", "B": "x"}`. Is it essential now to generate examples using aglio instead of using protagonist output?

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.