Skip to content

Conversation

@Himenon
Copy link
Owner

@Himenon Himenon commented Aug 13, 2021

Summary

Support

components:
  schemas:
    Book.Author:  # <--- Support!
      type: object
      required:
        - id
        - name
      properties:
        id:
          type: string
        name:
          type: string
          description: author name

Test Plan

comment: reference.data.description,
type: factory.TypeReferenceNode.create({
name: convertContext.escapeDeclarationText(context.resolveReferencePath(currentPoint, reference.path).name),
name: convertContext.escapeReferenceDeclarationText(context.resolveReferencePath(currentPoint, reference.path).name),
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: escapeが二重にかかっているのでシンプルにする

name: convertContext.escapeDeclarationText(name),
type: factory.TypeReferenceNode.create({
name: convertContext.escapeDeclarationText(maybeResolvedName),
name: convertContext.escapeReferenceDeclarationText(maybeResolvedName),
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: escapeが二重にかかっているのでシンプルにする

@Himenon Himenon changed the title fix: added support for cases where schemas name contains fix: schema added support for cases where schemas name contains '.' Aug 13, 2021
@Himenon Himenon merged commit 7502673 into main Aug 13, 2021
@Himenon Himenon deleted the fix/support-dot-schema-name branch August 13, 2021 04:43
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

Successfully merging this pull request may close these issues.

2 participants