Skip to content

Commit

Permalink
zzzzzzzzzz
Browse files Browse the repository at this point in the history
  • Loading branch information
aress31 committed Dec 23, 2023
1 parent ec04ede commit 51b981c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/java/swurg/workers/Worker.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,12 @@ private List<HttpParameter> buildHttpRequestParameters(List<Parameter> parameter
.flatMap(content -> content.entrySet().stream().findFirst())
.map(Map.Entry::getValue)
.ifPresent(mediaType -> {
if (mediaType.getSchema().get$ref() != null) {
String href = mediaType.getSchema().get$ref();
String formattedHref = href.substring(href.lastIndexOf("/") + 1);
String schemaRef = mediaType.getSchema().get$ref();

Schema schema = schemas.get(formattedHref);
if (schemaRef != null) {
schemaRef = schemaRef.substring(schemaRef.lastIndexOf("/") + 1);

Schema schema = schemas.get(schemaRef);
Map<String, Schema> properties = schema.getProperties();

if (properties != null) {
Expand Down

0 comments on commit 51b981c

Please sign in to comment.