ePages-de / ePages-de/restdocs-api-spec

Subschema examples

Open
#249 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
427
Forks
116
Avg merge
23h 54m
Merged PRs (30d)
1

Description

I'd like to use the new subschema feature, but can't seem to get it to work.

Adding the attribute to the sub model like so:
```
fieldWithPath("recipes[]").optional().attributes(schema("RecipeData"))
.description("List of recipes."),
```
generates a resource.json:
```
...
{
"attributes" : {
"schemaName" : "RecipeData"
},
"description" : "List of recipes.",
"ignored" : false,
"path" : "data.recipes[]",
"type" : "ARRAY",
"optional" : true
},
...
```

But openapi.json doesn't seem to get affected at all.
How to use the newly released feature?

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.