Coder Social home page Coder Social logo

openapi's People

Contributors

cluttrdev avatar daniel-jones-deepl avatar daniel-jones-dev avatar hoemoon avatar janebbing avatar mike-winters-deepl avatar seekuehe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openapi's Issues

Generation with openapi-generator fails

I am failing with generating with this maven plugin

            <!-- https://mvnrepository.com/artifact/org.openapitools/openapi-generator-maven-plugin -->
            <plugin>
               <groupId>org.openapitools</groupId>
               <artifactId>openapi-generator-maven-plugin</artifactId>
               <version>7.0.1</version>
               <executions>
                  <execution>
                     <goals>
                        <goal>generate</goal>
                     </goals>
                     <configuration>
                        <inputSpec>https://raw.githubusercontent.com/DeepLcom/openapi/main/openapi.yaml</inputSpec>
                        <apiPackage>com.example.deepl.generated.api</apiPackage>
                        <modelPackage>com.example.deepl.generated.api.model</modelPackage>
                        <generatorName>java</generatorName>
                        <library>resttemplate</library>
                        <useSpringBoot3>true</useSpringBoot3>
                        <skipValidateSpec>true</skipValidateSpec>
                        <generateApis>true</generateApis>
                        <generateModels>true</generateModels>
                        <generateSupportingFiles>true</generateSupportingFiles>
                        <generateClientAsBean>true</generateClientAsBean>
                        <legacyDiscriminatorBehavior>false</legacyDiscriminatorBehavior>
                        <generateApiTests>true</generateApiTests>
                        <generateModelTests>true</generateModelTests>
                        <generateApiDocumentation>true</generateApiDocumentation>
                        <generateModelDocumentation>true</generateModelDocumentation>
                        <configOptions>
                           <delegatePattern>true</delegatePattern>
                           <additionalModelTypeAnnotations>@lombok.Data; @edu.umd.cs.findbugs.annotations.SuppressFBWarnings</additionalModelTypeAnnotations>
                          <additionalEnumTypeAnnotations>@edu.umd.cs.findbugs.annotations.SuppressFBWarnings</additionalEnumTypeAnnotations>
                           <additionalOneOfTypeAnnotations>@edu.umd.cs.findbugs.annotations.SuppressFBWarnings</additionalOneOfTypeAnnotations>
                        </configOptions>

                        <configHelp>false</configHelp>
                     </configuration>
                  </execution>
               </executions>
            </plugin>

TranslateTextApi is getting generated with

import com.example.deepl.generated.api.model.TranslateTextRequest;
import com.example.deepl.generated.api.model.TranslateTextRequest1;

But the TranslateTextRequest1 is not getting generated at all so that my generated code is

TranslateTextRequest1 cannot be resolved

Adding the openai.json to actions in GPTs

I tried to add openai.json and openai.yaml to actions in GPTs. However, several errors occurred in both files.
In total, two types error messages are found.
The first is

In context=('components', 'schemas', 'NonSplittingTagCommaSeparatedList', 'allOf', '0'), reference to unknown component TagCommaSeparatedList; using empty schema

I have fixed this type of error by changing

"allOF": [
{
    "$ref": "#/components/schemas/TagCommaSeparatedList"
  }
]

to

"items": {
            "$ref": "#/components/schemas/TagCommaSeparatedList"
          },

However, I can't solve the second type of problem:

In path /document/{document_id}, method post, operationId getDocumentStatus, parameter {'$ref': '#/components/parameters/DocumentID'} is has missing or non-string name; skipping
In path /document/{document_id}, method post, operationId getDocumentStatus, skipping function due to errors
In path /glossaries/{glossary_id}, method get, operationId getGlossary, parameter {'$ref': '#/components/parameters/GlossaryID'} is has missing or non-string name; skipping
In path /glossaries/{glossary_id}, method get, operationId getGlossary, skipping function due to errors

Everything looks fine to me, I don't know why is this error occurring. I have already tried changing name "document_id" to "DocumentID".
Can any one help me on this?

Mistake in specification

Hey, I think I spotted a mistake in the specification. I'm new to the OpenAPI but if I understand it correctly, the specification currently says the detected_source_language conforms to two types: SourceLanguage and a type with only a description (line 205) and thus any content(?).

openapi/openapi.json

Lines 199 to 208 in 7067183

"detected_source_language": {
"allOf": [
{
"$ref": "#/components/schemas/SourceLanguage"
},
{
"description": "The language detected in the source text. It reflects the value of the `source_lang` parameter, when specified."
}
]
},

I believe the section instead should be:

"detected_source_language": {
    "allOf": [
      {
        "$ref": "#/components/schemas/SourceLanguage"
      }
    ],
    "description": "The language detected in the source text. It reflects the value of the `source_lang` parameter, when specified."
  },

I'm not sure if the yaml file also needs to be fixed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.