Skip to content

Instantly share code, notes, and snippets.

View martin-mfg's full-sized avatar

martin-mfg

  • Germany
  • 23:11 (UTC +02:00)
View GitHub Profile
diff --git a/pom.xml b/pom.xml
index 402a6a8..0fedd31 100644
--- a/pom.xml
+++ b/pom.xml
@@ -636,7 +636,7 @@
</configOptions>
<importMappings>
- <importMapping>PersonalStatusType=at.swgt.model.PersonalStatusType</importMapping>
+<!-- <importMapping>PersonalStatusType=at.swgt.model.PersonalStatusType</importMapping>-->
diff --git a/src/main/java/org/openapitools/client/model/Animal.java b/src/main/java/org/openapitools/client/model/Animal.java
index 5f33e7f..d2f8fe6 100644
--- a/src/main/java/org/openapitools/client/model/Animal.java
+++ b/src/main/java/org/openapitools/client/model/Animal.java
@@ -108,13 +108,13 @@ public class Animal {
public static final String SERIALIZED_NAME_PET_TYPE = "petType";
@SerializedName(SERIALIZED_NAME_PET_TYPE)
- @javax.annotation.Nonnull
protected PetTypeEnum petType;
openapi: 3.1.0
info:
version: 1.0.0
description: dummy
title: dummy
paths:
/:
post:
requestBody:
content:
openapi: 3.0.3
info:
version: 1.0.0
title: initialization demo
paths:
/:
get:
responses:
'200':
description: dummy
package org.openapitools.client;
import org.openapitools.client.api.DefaultApi;
import java.time.OffsetDateTime;
public class Main {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi(new ApiClient());
String result = apiInstance.anythingGet(OffsetDateTime.now());
@martin-mfg
martin-mfg / DemoApp.java
Last active September 29, 2023 07:49
please see 1st comment below
package demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
openapi: 3.0.3
info:
title: example of a parent schema with discriminator property that is an enum
version: "2.0"
paths:
"/pet/{petId}":
get:
summary: Find pet by id
operationId: getBetById
parameters:
swagger: "2.0"
info:
title: dummy
version: dummy
paths:
/property:
post:
consumes:
- application/x-www-form-urlencoded
parameters:
swagger: '2.0'
info:
description: "This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\"
version: 1.0.0
title: OpenAPI Petstore
paths:
'/':
get:
description: dummy
operationId: getSingle
@martin-mfg
martin-mfg / maven-deployer.groovy
Last active April 25, 2019 12:57 — forked from jakub-bochenski/maven-deployer.groovy
A pom.xml to batch deploy artifacts which are put under local repository folder structure to a repository. Modify the setting in <deploy.basefolder> and <distributionManagement> before use. Run `mvn install` to deploy.This file is created base on StackOverflow answer: http://stackoverflow.com/a/3304212/94148 Referenced by http://aleung.github.co…
def layout = session.lookup('org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout');
def repoFactory = session.lookup('org.apache.maven.artifact.repository.ArtifactRepositoryFactory');
def repository = repoFactory.createDeploymentArtifactRepository(
project.distributionManagement.repository.id,
project.distributionManagement.repository.url,
layout, true );
def snapshotRepository = repoFactory.createDeploymentArtifactRepository(
project.distributionManagement.snapshotRepository.id,