Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename: models -> components
  • Loading branch information
ackintosh committed Jan 1, 2019
commit b2ee6fc807c84441966cd56c86db752f7052bf4d
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void flatten(OpenAPI openapi) {
flattenPaths(openapi);

// definitions
flattenModels(openapi);
flattenComponents(openapi);
}

/**
Expand Down Expand Up @@ -279,11 +279,11 @@ private void flattenPaths(OpenAPI openAPI) {
}

/**
* Flatten inline models in models
* Flatten inline models in components
*
* @param openAPI target spec
*/
private void flattenModels(OpenAPI openAPI) {
private void flattenComponents(OpenAPI openAPI) {
Map<String, Schema> models = openAPI.getComponents().getSchemas();
if (models == null) {
return;
Expand Down