Skip to content

refactor: init parse, lint and validate functions - #487

Merged
asyncapi-bot merged 4 commits into
asyncapi:next-majorfrom
magicmatatjahu:next/init-parse-function
Mar 9, 2022
Merged

asyncapi-bot merged 4 commits into
asyncapi:next-majorfrom
magicmatatjahu:next/init-parse-function

Conversation

@magicmatatjahu

@magicmatatjahu magicmatatjahu commented Mar 9, 2022 •

Copy link
Copy Markdown
Member

Description

  • add parse function:
    • init function's logic
    • add needed types
    • add relevant unit tests - simple, in next PRs I will add more complex cases
  • Add lint function:
    • init function's logic
    • add needed types
    • add relevant unit tests - simple, in next PRs I will add more complex cases
  • Add validate function:
    • init function's logic
    • add needed types
    • add relevant unit tests - simple, in next PRs I will add more complex cases
    • base validation on spectral 🚀

NOTE: lint and validate differ in that lint only returns errors, while validate also returns (or not, based on passed options) a validated object.

Related issue(s)
Part of #482

@sonarqubecloud

sonarqubecloud Bot commented Mar 9, 2022

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 136a632 into asyncapi:next-major Mar 9, 2022
@magicmatatjahu
magicmatatjahu deleted the next/init-parse-function branch March 9, 2022 17:05
magicmatatjahu added a commit to magicmatatjahu/parser-js that referenced this pull request Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request ready-to-merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants