Skip to content

refactor: update Readme.md v1 - #601

Merged
asyncapi-bot merged 6 commits into
asyncapi:next-majorfrom
magicmatatjahu:next/update-readme-v1
Sep 12, 2022
Merged

asyncapi-bot merged 6 commits into
asyncapi:next-majorfrom
magicmatatjahu:next/update-readme-v1

Conversation

@magicmatatjahu

Copy link
Copy Markdown
Member

Description

Update Readme.md with informations:

  • add installation guide
  • add examples
  • update custom parsers section
  • update stringify section
  • update develop section

Other section will be updated in next PRs.

cc @smoya

Related issue(s)
Part of #481
Part of #482

@magicmatatjahu

Copy link
Copy Markdown
Member Author

markdown link workflow throws error:

FILE: README.md
[✖] /docs/api.md → Status: 400 [Error: ENOENT: no such file or directory, access '/docs/api.md'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'access',
  path: '/docs/api.md'
}

But we don't have such a link in this file, lol 😆

Comment thread README.md Resolved
Comment thread README.md Resolved
Comment thread README.md Resolved
Comment thread README.md Resolved

@smoya smoya left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks pretty good! Just some minor changes.

Comment thread README.md
Comment on lines +129 to +147
asyncapi: '2.4.0'
info:
title: Example AsyncAPI specification
version: '0.1.0'
channels:
example-channel:
subscribe:
message:
payload:
type: object
properties:
exampleField:
type: string
exampleNumber:
type: number
exampleDate:
type: string
format: date-time
`);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This example is not valid to Spectral because of this rule asyncapi-operation-operationId: https://github.com/stoplightio/spectral/blob/297531bbc6f26393d325a101b59f9e8b1f57e21e/packages/rulesets/src/asyncapi/index.ts#L230-L240

Not sure if we really want to keep that rule there. The operationId is not mandatory by the spec.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I know about some "problems" with Spectral. Now I would leave that spec, because at the end operationId won't be mandatory on Spectral side, don't worry.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do you mean that particular spectral rule will be gone? Could you bring more details, please?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Changed will be severity from error to warning - then there will be information that it is a good pattern design. Most of the rules from Spectral were made 2 years ago by the Stoplight team itself and a lot of things are not up to date. This week I have a plan to go through all the rules and improve them.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Changed will be severity from error to warning

That makes totally sense to me. I have few concerns regarding this but I'm not gonna add anything extra into this issue, but rather please ping me on the work you plan to do 🙏

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I will create PR with that in Spectral side, so maybe better will be if you will list everything bugs that you see, hmm?

@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@smoya smoya left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@magicmatatjahu

Copy link
Copy Markdown
Member Author

/rtm

@asyncapi-bot
asyncapi-bot merged commit 71e8672 into asyncapi:next-major Sep 12, 2022
@magicmatatjahu
magicmatatjahu deleted the next/update-readme-v1 branch September 12, 2022 12:26
@magicmatatjahu magicmatatjahu mentioned this pull request Sep 14, 2022
14 of 20 tasks
magicmatatjahu added a commit to magicmatatjahu/parser-js that referenced this pull request Oct 3, 2022
derberg pushed a commit that referenced this pull request Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants