Skip to content

perf: poc of validation service improvements#5166

Open
glowcloud wants to merge 6 commits into
mainfrom
perf/oss-921-validation-performance
Open

perf: poc of validation service improvements#5166
glowcloud wants to merge 6 commits into
mainfrom
perf/oss-921-validation-performance

Conversation

@glowcloud
Copy link
Copy Markdown
Contributor

@glowcloud glowcloud commented Apr 27, 2026

POC of validation improvements:

  • YAML direct syntactic analysis with fallback to indirect
  • avoid deep visiting when dereferencing with continueOnError option
  • AbortSignal handling when starting another validation
  • linting functions cache

@glowcloud glowcloud marked this pull request as ready for review May 7, 2026 09:35
Comment thread packages/apidom-ls/src/services/validation/validation-service.ts Outdated
Comment on lines +270 to +271
(member as any).content.key = keyElement;
(member as any).content.value = valueElement;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

perhaps we could use some type guard here 🤔

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Turns out we can assign directly to key/value. Also, I forgot to commit changes to adapter node/browser so direct analysis was not running 🤦 Fixed this as well.

Comment thread packages/apidom-ls/src/services/validation/validation-service.ts Outdated
Comment thread packages/apidom-parser-adapter-yaml-1-2/src/syntactic-analysis/direct/index.ts Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants