Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolveFully not implemented #3

Open
alinemombach-amadeus opened this issue Jun 4, 2024 · 0 comments
Open

resolveFully not implemented #3

alinemombach-amadeus opened this issue Jun 4, 2024 · 0 comments

Comments

@alinemombach-amadeus
Copy link

Problem:
The project includes a function to set the resolveFully, which is intended to resolve internal references. However, it appears that the ResolverFully class is not implemented within the project, therefore internal references remain unresolved.

Expected Behavior:
When resolveFully is set to true, the system should utilize the ResolverFully class to resolve internal references as intended.

Steps to reproduce:

options.setResolve(true);
options.setResolveFully(true);
AsyncParseResult parseResult = asyncAPIV2Parser.readContents(myString);
AsyncAPI asyncAPI = parseResult.getAsyncAPI();

Input asyncAPI spec:

asyncapi: 2.0.0
info:
  title: Not 2.0 example
  version: 1.0.0
channels:
  test:
    subscribe:
      message:
        $ref: '#/components/messages/testMessage'
components:
  messages:
    testMessage:
      payload:
        type: string

will result:

class AsyncAPI {
    asyncapi: 2.0.0
    id: null
    info: class Info {
        title: Not 2.0 example
        description: null
        termsOfService: null
        contact: null
        license: null
        version: 1.0.0
    }
    externalDocs: null
    servers: null
    defaultContentType: null
    channels: {test=Channel [description=null, subscribe=Operation [operationId=null, summary=null, description=null, tags=null, externalDocs=null, bindings=null, traits=null, message=Message [headers=null, payload=null, correlationId=null, schemaFormat=null, contentType=null, name=null, title=null, summary=null, description=null, tags=null, externalDocs=null, bindings=null, traits=null, extensions=null, $ref=#/components/messages/testMessage], extensions=null], publish=null, parameters=null, bindings=null, $ref=null, extensions=null]}
    tags: null
    components: Components [schemas=null, messages={testMessage=Message [headers=null, payload=class StringSchema {
        class Schema {
            type: string
            format: null
            $ref: null
            description: null
            title: null
            multipleOf: null
            maximum: null
            exclusiveMaximum: null
            minimum: null
            exclusiveMinimum: null
            maxLength: null
            minLength: null
            pattern: null
            maxItems: null
            minItems: null
            uniqueItems: null
            maxProperties: null
            minProperties: null
            required: null
            not: null
            properties: null
            additionalProperties: null
            readOnly: null
            writeOnly: null
            example: null
            externalDocs: null
            deprecated: null
            discriminator: null
        }
    }, correlationId=null, schemaFormat=null, contentType=null, name=null, title=null, summary=null, description=null, tags=null, externalDocs=null, bindings=null, traits=null, extensions=null, $ref=null]}, securitySchemes=null, parameters=null, correlationIds=null, operationTraits=null, messageTraits=null, serverBindings=null, channelBindings=null, operationBindings=null, messageBindings=null, extensions={}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant