Skip to content

Instantly share code, notes, and snippets.

View wing328's full-sized avatar

William Cheng wing328

View GitHub Profile
[ERROR] Failed to execute goal org.openapitools:openapi-generator-maven-plugin:6.3.0-SNAPSHOT:generate (generate-spring-server-interfaces) on project demo: Execution generate-spring-server-interfaces of goal org.openapitools:openapi-generator-maven-plugin:6.3.0-SNAPSHOT:generate failed: An API incompatibility was encountered while executing org.openapitools:openapi-generator-maven-plugin:6.3.0-SNAPSHOT:generate: java.lang.NoSuchMethodError: 'void org.openapitools.codegen.config.CodegenConfiguratorUtils.applyOpenAPINormalizerKvpList(java.util.List, org.openapitools.codegen.config.CodegenConfigurator)'
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.openapitools:openapi-generator-maven-plugin:6.3.0-SNAPSHOT
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/williamcheng/.m2/repository/org/openapitools/openapi-generator-maven-plugin/6.3.0-SNAPSHOT/openapi-generator-maven-plugin-6.3.0-SNAPSHOT.jar
[ERROR] urls[1]
components:
schemas:
Pet:
type: object
required:
- pet_type
properties:
pet_type:
type: string
Dog:
@wing328
wing328 / gist:d8ef17e0b884ea821f2c7a1218ab368f
Created November 2, 2022 02:21
changes to samples due to isEnum reference fix in the codegen property
deleted: bin/configs/haskell-http-client.yaml
deleted: bin/configs/typescript-fetch-sagas-and-records.yaml
modified: modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java
modified: samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Model/MultipartMixedRequest.cs
modified: samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/EnumTest.cs
modified: samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/EnumTest.cs
modified: samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/EnumTest.cs
modified: samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/EnumTest.cs
modified: samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/EnumTest.cs
modified: samples/client/petstore/csharp-netcore/OpenAPIClient
@wing328
wing328 / slack_web_modified.json
Created June 5, 2020 09:30
slack_web.json with "additonalProperties: false" replaced with empty string
This file has been truncated, but you can view the full file.
{
"basePath": "/api",
"definitions": {
"blocks": {
"description": "This is a very loose definition, in the future, we'll populate this with deeper schema in this definition namespace.",
"items": {
"additionalProperties": true,
"properties": {
"type": {
"type": "string"
@wing328
wing328 / ubuntu_install_docker_ce.sh
Last active March 5, 2021 02:12
Bash script to install Docker CE in Ubuntu
#!/bin/bash
set -e
sudo apt-get update && \
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
@wing328
wing328 / hacker_news_api_swagger.json
Created September 18, 2016 10:10
OpenAPI/Swagger spec for Hacker News API
{
"swagger": "2.0",
"info": {
"title": "Hacker News",
"description": "<p>Hacker News API</p>\n",
"version": "1.0.1"
},
"host": "hacker-news.firebaseio.com",
"basePath": "/v0",
"schemes": [
@wing328
wing328 / marvel.openapi.v2.json
Created June 2, 2016 10:14
Marvel API OpenAPI/Swagger Spec 2.0
{
"host": "gateway.marvel.com",
"basePath": "/",
"schemes": [
"http"
],
"swagger": "2.0",
"info": {
"title": "gateway.marvel.com",
"version": "Cable"
@wing328
wing328 / petstore_inline_model.json
Last active October 18, 2015 15:53
Petstore partially updated with inline models
{
"swagger": "2.0",
"info": {
"description": "Petstore partially updated with inline models",
"version": "1.0.0",
"title": "Swagger Petstore",
"termsOfService": "http://helloreverb.com/terms/",
"contact": {
"name": "apiteam@swagger.io"
},
{
"swagger": "2.0",
"info": {
"description": "This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters",
"version": "1.0.0",
"title": "Swagger Petstore",
"termsOfService": "http://swagger.io/terms/",
"contact": {
"email": "apiteam@swagger.io"