Skip to content

feat: humanize format - #68

Closed
vankop wants to merge 1 commit into
webpack:mainfrom
vankop:issue-66
Closed

feat: humanize format#68
vankop wants to merge 1 commit into
webpack:mainfrom
vankop:issue-66

Conversation

@vankop

@vankop vankop commented Oct 13, 2019

Copy link
Copy Markdown
Contributor

This PR contains a:

  • bugfix
  • new feature
  • code refactor
  • test update
  • typo fix
  • metadata update

Motivation / Use-Case

#66

Breaking Changes

Yes

Additional Info

I think it is a point to discuss, should schema-utils move absolutePath to custom format instead of keyword


export default (ajv) =>
export default (ajv) => {
ajv.addFormat('absolutePath', () => true);

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.

TODO =)

@codecov

codecov Bot commented Oct 13, 2019

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.87500% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 98.47%. Comparing base (7fc8069) to head (d3eb673).
⚠️ Report is 126 commits behind head on main.

Files with missing lines Patch % Lines
src/util/humanize.js 96.29% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #68      +/-   ##
==========================================
- Coverage   98.57%   98.47%   -0.10%     
==========================================
  Files           5        6       +1     
  Lines         561      592      +31     
  Branches      252      259       +7     
==========================================
+ Hits          553      583      +30     
- Misses          8        9       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@alexander-akait

Copy link
Copy Markdown
Member

/cc @vankop we can continue a work on the PR

@evenstensberg evenstensberg 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.

could you rebase? I can work on this if it's stale

Copy link
Copy Markdown
Member

Thank you for this @vankop, and sorry it sat for so long.

Splitting it in two:

Closing as superseded by #225.


Generated by Claude Code

alexander-akait added a commit that referenced this pull request Sep 8, 2026
A `format` was reported as a hint next to the constraints of the string:

    configuration.strictFormat should be a string (should match format "date", should be < "2016-02-06").

It names the string, so it now reads as part of the type:

    configuration.strictFormat should be a date string (should be < "2016-02-06").

The name is turned into words, so a `date-time`, a `snake_case` and a
`camelCase` format all read as words. A format is any string though, not only
a name - one that is not a name, such as the pattern `[0-9]*`, is still
reported as a hint, and so is a negated format, which no type can state.

Taken from #68, without the part of it moving `absolutePath` from a keyword
to a format, which is breaking and was left open for discussion there.



Claude-Session: https://claude.ai/code/session_013wqLmVHkAGBsWQgXknEQCK

Co-authored-by: Ivan Kopeykin <10380560+vankop@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
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.

3 participants