Skip to content

test(flatten): asserts that the ExpandSpec fix in spec works#93

Merged
fredbi merged 1 commit intogo-openapi:masterfrom
fredbi:fix/2743-relative-ref
Jan 9, 2024
Merged

test(flatten): asserts that the ExpandSpec fix in spec works#93
fredbi merged 1 commit intogo-openapi:masterfrom
fredbi:fix/2743-relative-ref

Conversation

@fredbi
Copy link
Copy Markdown
Member

@fredbi fredbi commented Jan 8, 2024

This reproduces the $ref issue with relative paths in sibling folders in responses (same applies to parameters, but not schemas).

Added a test to verify that:

This reproduces the $ref issue with relative paths in sibling folders
in responses (same applies to parameters, but not schemas).

Added a test to verify that:
* (i) the invalid path that used to work no longer does
* (ii) the valid path that used not to work now does

* contributes go-swagger/go-swagger#2743

Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
@fredbi fredbi force-pushed the fix/2743-relative-ref branch from 6d91d00 to a12c0ca Compare January 9, 2024 08:41
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3e717a5) 91.73% compared to head (a12c0ca) 91.73%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #93   +/-   ##
=======================================
  Coverage   91.73%   91.73%           
=======================================
  Files          15       15           
  Lines        2566     2566           
=======================================
  Hits         2354     2354           
  Misses        158      158           
  Partials       54       54           
Flag Coverage Δ
oldstable 91.73% <ø> (+0.23%) ⬆️
stable 91.73% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@fredbi fredbi marked this pull request as ready for review January 9, 2024 08:44
@fredbi fredbi requested review from casualjim and youyuanwu January 9, 2024 08:44
@fredbi
Copy link
Copy Markdown
Member Author

fredbi commented Jan 9, 2024

This a test-only follow-up on go-openapi/spec#183

@fredbi fredbi merged commit 5d13d1c into go-openapi:master Jan 9, 2024
@fredbi fredbi deleted the fix/2743-relative-ref branch January 9, 2024 08:46
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.

1 participant