Skip to content

Commit

Permalink
chore(deps): bump swagger-codegen to 3.0.27 (#11743)
Browse files Browse the repository at this point in the history
* Bump swagger-codegen to 3.0.27

* Fix formatting

* Fix formatting

* chore(deps): bump jetty.version (#11722)

Bumps `jetty.version` from 9.4.27.v20200227 to 9.4.43.v20210629.

Updates `jetty-maven-plugin` from 9.4.27.v20200227 to 9.4.43.v20210629
- [Release notes](https://github.com/eclipse/jetty.project/releases)
- [Commits](jetty/jetty.project@jetty-9.4.27.v20200227...jetty-9.4.43.v20210629)

Updates `jetty-webapp` from 9.4.27.v20200227 to 9.4.43.v20210629
- [Release notes](https://github.com/eclipse/jetty.project/releases)
- [Commits](jetty/jetty.project@jetty-9.4.27.v20200227...jetty-9.4.43.v20210629)

Updates `jetty-continuation` from 9.4.27.v20200227 to 9.4.43.v20210629

Updates `jetty-annotations` from 9.4.27.v20200227 to 9.4.43.v20210629
- [Release notes](https://github.com/eclipse/jetty.project/releases)
- [Commits](jetty/jetty.project@jetty-9.4.27.v20200227...jetty-9.4.43.v20210629)

Updates `websocket-server` from 9.4.27.v20200227 to 9.4.43.v20210629

---
updated-dependencies:
- dependency-name: org.eclipse.jetty:jetty-maven-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.eclipse.jetty:jetty-webapp
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.eclipse.jetty:jetty-continuation
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.eclipse.jetty:jetty-annotations
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.eclipse.jetty.websocket:websocket-server
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump maven-clean-plugin from 3.0.0 to 3.1.0 (#11728)

Bumps [maven-clean-plugin](https://github.com/apache/maven-clean-plugin) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/apache/maven-clean-plugin/releases)
- [Commits](apache/maven-clean-plugin@maven-clean-plugin-3.0.0...maven-clean-plugin-3.1.0)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-clean-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump equalsverifier from 3.0 to 3.7.1 (#11723)

Bumps [equalsverifier](https://github.com/jqno/equalsverifier) from 3.0 to 3.7.1.
- [Release notes](https://github.com/jqno/equalsverifier/releases)
- [Changelog](https://github.com/jqno/equalsverifier/blob/main/CHANGELOG.md)
- [Commits](jqno/equalsverifier@equalsverifier-3.0...equalsverifier-3.7.1)

---
updated-dependencies:
- dependency-name: nl.jqno.equalsverifier:equalsverifier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump maven-enforcer-plugin from 1.4.1 to 3.0.0 (#11724)

Bumps [maven-enforcer-plugin](https://github.com/apache/maven-enforcer) from 1.4.1 to 3.0.0.
- [Release notes](https://github.com/apache/maven-enforcer/releases)
- [Commits](apache/maven-enforcer@enforcer-1.4.1...enforcer-3.0.0)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-enforcer-plugin
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump exec-maven-plugin from 1.6.0 to 3.0.0 (#11727)

Bumps [exec-maven-plugin](https://github.com/mojohaus/exec-maven-plugin) from 1.6.0 to 3.0.0.
- [Release notes](https://github.com/mojohaus/exec-maven-plugin/releases)
- [Commits](mojohaus/exec-maven-plugin@exec-maven-plugin-1.6.0...exec-maven-plugin-3.0.0)

---
updated-dependencies:
- dependency-name: org.codehaus.mojo:exec-maven-plugin
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump maven-dependency-plugin from 2.8 to 3.2.0 (#11738)

Bumps [maven-dependency-plugin](https://github.com/apache/maven-dependency-plugin) from 2.8 to 3.2.0.
- [Release notes](https://github.com/apache/maven-dependency-plugin/releases)
- [Commits](apache/maven-dependency-plugin@maven-dependency-plugin-2.8...maven-dependency-plugin-3.2.0)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-dependency-plugin
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump validation-api from 2.0.0.Final to 2.0.1.Final (#11735)

Bumps [validation-api](https://github.com/beanvalidation/beanvalidation-api) from 2.0.0.Final to 2.0.1.Final.
- [Release notes](https://github.com/beanvalidation/beanvalidation-api/releases)
- [Commits](jakartaee/validation@2.0.0.Final...2.0.1.Final)

---
updated-dependencies:
- dependency-name: javax.validation:validation-api
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump hsqldb from 2.2.6 to 2.6.0 (#11737)

Bumps hsqldb from 2.2.6 to 2.6.0.

---
updated-dependencies:
- dependency-name: org.hsqldb:hsqldb
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump mockito-core from 3.10.0 to 3.12.4 (#11733)

Bumps [mockito-core](https://github.com/mockito/mockito) from 3.10.0 to 3.12.4.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](mockito/mockito@v3.10.0...v3.12.4)

---
updated-dependencies:
- dependency-name: org.mockito:mockito-core
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: organize dependency versions and update vulnerable jackson-databind version for fusion-endpoint (#11659)

* Organize dependency versions

* Retrigger validation

* Update tests to reflect changes in FasterXML/jackson-databind#2643

* chore(deps): Override frontend-plugin-core dependencies (#11732)

This overrides outdated and vulnerable jackson-databind and httpclient with a more recent yet compatible versions.

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
fluorumlabs and dependabot[bot] authored Sep 6, 2021
1 parent bf501aa commit 92fdee0
Show file tree
Hide file tree
Showing 8 changed files with 125 additions and 10 deletions.
4 changes: 2 additions & 2 deletions packages/java/fusion-endpoint/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<spring.autoconfigure.version>2.2.0.RELEASE</spring.autoconfigure.version>
<javax.annotation.api.version>1.3.2</javax.annotation.api.version>
<javaparser.version>3.23.0</javaparser.version>
<swagger.codegen.version>3.0.2</swagger.codegen.version>
<swagger.codegen.generators.version>1.0.2</swagger.codegen.generators.version>
<swagger.codegen.version>3.0.27</swagger.codegen.version>
<swagger.codegen.generators.version>1.0.27</swagger.codegen.generators.version>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import io.swagger.codegen.v3.CodegenType;
import io.swagger.codegen.v3.DefaultGenerator;
import io.swagger.codegen.v3.generators.typescript.AbstractTypeScriptClientCodegen;
import io.swagger.codegen.v3.generators.util.OpenAPIUtil;
import io.swagger.util.Json;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.Operation;
Expand Down Expand Up @@ -229,10 +230,10 @@ public CodegenOperation fromOperation(String path, String httpMethod,

@Override
@SuppressWarnings("unchecked")
public CodegenParameter fromRequestBody(RequestBody body,
Map<String, Schema> schemas, Set<String> imports) {
CodegenParameter codegenParameter = super.fromRequestBody(body, schemas,
imports);
public CodegenParameter fromRequestBody(RequestBody body, String name,
Schema schema, Map<String, Schema> schemas, Set<String> imports) {
CodegenParameter codegenParameter = super.fromRequestBody(body, name,
schema, schemas, imports);
Schema requestBodySchema = getRequestBodySchema(body);
if (requestBodySchema != null) {
imports.addAll(collectImportsFromSchema(requestBodySchema));
Expand Down Expand Up @@ -304,7 +305,7 @@ public String getTypeDeclaration(Schema schema) {
return String.format("ReadonlyArray<%s>%s",
this.getTypeDeclaration(inner), optionalSuffix);
} else if (GeneratorUtils.isNotBlank(schema.get$ref())) {
return getSimpleRef(schema.get$ref()) + optionalSuffix;
return OpenAPIUtil.getSimpleRef(schema.get$ref()) + optionalSuffix;
} else if (schema.getAdditionalProperties() != null) {
Schema inner = (Schema) schema.getAdditionalProperties();
return String.format("Readonly<Record<string, %s>>%s",
Expand Down Expand Up @@ -417,7 +418,7 @@ public String toModelName(String name) {
}

@Override
protected void addImport(CodegenModel m, String type) {
public void addImport(CodegenModel m, String type) {
if (!Objects.equals(m.getName(), type)) {
super.addImport(m, type);
}
Expand Down Expand Up @@ -486,7 +487,7 @@ private void adjustImportInformationForModel(
private Set<String> collectImportsFromSchema(Schema schema) {
Set<String> imports = new HashSet<>();
if (GeneratorUtils.isNotBlank(schema.get$ref())) {
imports.add(getSimpleRef(schema.get$ref()));
imports.add(OpenAPIUtil.getSimpleRef(schema.get$ref()));
}
if (schema instanceof ArraySchema) {
imports.addAll(collectImportsFromSchema(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ import Schema from './Schema';
* All changes to this file are overridden. Please consider to make changes in the corresponding Java file if necessary.
*/
export default interface ArraySchema extends Schema {
readonly type?: string;
readonly items?: Schema;
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ export default interface Schema {
readonly extensions?: Readonly<Record<string, any | undefined>>;
readonly _enum?: ReadonlyArray<any | undefined>;
readonly discriminator?: Discriminator;
readonly exampleSetFlag: boolean;
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,35 @@
}
}
}
},
"components" : {
"schemas" : {
"Role" : {
"type" : "object",
"properties" : {
"roleName" : {
"type" : "string"
}
},
"description" : "Role bean"
},
"User" : {
"type" : "object",
"properties" : {
"name" : {
"type" : "string"
},
"password" : {
"type" : "string"
},
"roles" : {
"type" : "object",
"additionalProperties" : {
"$ref" : "#/components/schemas/Role"
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,35 @@
}
}
}
},
"components" : {
"schemas" : {
"Role" : {
"type" : "object",
"properties" : {
"roleName" : {
"type" : "string"
}
},
"description" : "Role bean"
},
"User" : {
"type" : "object",
"properties" : {
"name" : {
"type" : "string"
},
"password" : {
"type" : "string"
},
"roles" : {
"type" : "object",
"additionalProperties" : {
"$ref" : "#/components/schemas/Role"
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,35 @@
}
}
}
},
"components" : {
"schemas" : {
"Role" : {
"type" : "object",
"properties" : {
"roleName" : {
"type" : "string"
}
},
"description" : "Role bean"
},
"User" : {
"type" : "object",
"properties" : {
"name" : {
"type" : "string"
},
"password" : {
"type" : "string"
},
"roles" : {
"type" : "object",
"additionalProperties" : {
"$ref" : "#/components/schemas/Role"
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,30 @@
}
}
}
},
"ComplexRequest" : {
"type" : "object",
"properties" : {
"valueA" : {
"type" : "string"
},
"valueB" : {
"type" : "string"
}
},
"description" : "ComplexRequest bean"
},
"ComplexResponse" : {
"type" : "object",
"properties" : {
"valueC" : {
"type" : "string"
},
"valueD" : {
"type" : "string"
}
},
"description" : "ComplexResponse bean"
}
},
"securitySchemes" : {
Expand Down

0 comments on commit 92fdee0

Please sign in to comment.