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

library crashes when writing properties for object #69

Closed
rmelian opened this issue Sep 13, 2019 · 2 comments
Closed

library crashes when writing properties for object #69

rmelian opened this issue Sep 13, 2019 · 2 comments
Labels
area/library Related to all activities around Library package bug Something isn't working

Comments

@rmelian
Copy link
Contributor

rmelian commented Sep 13, 2019

Description

When writing a document, specifically when adding new properties to an object, the library throws an error

Expected result

ignore properties when invalid

Actual result

image

Steps to reproduce

asyncapi: '2.0.0'
id: 'urn:myapi'
info:
  title: My API
  version: '1.0.0'
channels:
  mychannel:
    publish:
      message:
        $ref: '#/components/messages/testMessage'

components:
  messages:
    testMessage:
      payload:
        $ref: '#/components/schemas/testSchema'
  schemas:
    testSchema:
      type: object
      properties:
        name:
          type: string
    order:
      type: object
      properties:
        name:
          type: string
    activity:
      type: object
      properties:
        name:

Troubleshooting

This is the validatedSchema returned from AsyncApi.tsx

image

@rmelian
Copy link
Contributor Author

rmelian commented Sep 14, 2019

I have a fix for this too, I'll send it after #67 gets fixed

@magicmatatjahu magicmatatjahu added area/library Related to all activities around Library package bug Something isn't working labels Sep 16, 2019
rmelian added a commit to rmelian/asyncapi-react that referenced this issue Sep 16, 2019
@derberg
Copy link
Member

derberg commented Sep 25, 2019

Fixed with #68
This week new version of the package will be released

@derberg derberg closed this as completed Sep 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/library Related to all activities around Library package bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants