Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

fredbi
Copy link
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 <[email protected]>
@fredbi fredbi force-pushed the fix/2743-relative-ref branch from 6d91d00 to a12c0ca Compare January 9, 2024 08:41
Copy link

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
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
10 checks passed
@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