Skip to content

Conversation

@RobbeSneyders
Copy link
Member

Fixes #1909

This PR uses the already resolved spec when swagger UI requests it.

@coveralls
Copy link

Coverage Status

coverage: 94.408%. remained the same
when pulling 86e2c04 on bugfix/swaggerui-refs
into cef665c on main.

@RobbeSneyders RobbeSneyders merged commit bb48fb3 into main Nov 27, 2024
8 checks passed
@RobbeSneyders RobbeSneyders deleted the bugfix/swaggerui-refs branch November 27, 2024 22:21
RobbeSneyders added a commit that referenced this pull request Oct 13, 2025
This PR fixes an issue introduced in #2002, and the original issue #2002
was trying to address.

The original issue was that a cloned spec did not have properly resolved
references. #2002 fixed this incorrectly by cloning the resolved spec,
while the `Spec` initializer expects a raw spec.

This PR fixes this by cloning the raw spec, and passing the `base_uri`
required to resolve it along to the initializer of the new `Spec`
instance.

The swagger ui was also updated to use the resolved spec instead of the
raw spec.

Supersedes:
#1889
#2080

Fixes:
#1890
#1909
#2028 
#2029
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.

Splitting spec files still throws schema and file not found errors (json_schema exceptions) but still works with Connexion <= 3.0.2

3 participants