8000 Is the openAPI spec (eventually) normative or informative? · Issue #118 · w3c/did-resolution · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Is the openAPI spec (eventually) normative or informative? #118

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

Open
iherman opened this issue Jan 31, 2025 · 3 comments
Open

Is the openAPI spec (eventually) normative or informative? #118

iherman opened this issue Jan 31, 2025 · 3 comments

Comments

@iherman
Copy link
Member
iherman commented Jan 31, 2025

At this moment, there is a reference in the section on HTTP(S) binding to https://github.com/decentralized-identity/universal-resolver/blob/main/openapi/openapi.yaml.

  1. If this is informative, we should say so (e.g., by putting it into a note)
  2. if this is normative, then the yml file should be brought over to the W3C spec either by normative reference locally or by inclusion.

Personally, my preference would be (2), but I am not sure if that is possible. E.g., I do not know whether openAPI is technically stable for W3C usage.

@peacekeeper
Copy link
Collaborator

I don't have much experience with this, is it common for W3C specs to include normative API definitions? I think OpenAPI does have stable versions.

But what happens if there is some kind of conflict between the spec text and the OpenAPI definition?

@iherman
Copy link
Member Author
iherman commented Feb 7, 2025

I don't have much experience with this, is it common for W3C specs to include normative API definitions? I think OpenAPI does have stable versions.

It is up to the WG, so I do not see why not. In a way, all W3C recommendations that publish an API using WebIDL do that, just using a different formalism (there are many reasons why we should not use WebIDL).

But what happens if there is some kind of conflict between the spec text and the OpenAPI definition?

Then we have a problem :-) That is why the requirement for (normative) references is that the definition must be, technically, stable.

If that is the case with OpenAPI, then my issue is moot and can be closed. But I am not familiar enough with that world to decide that...

@w3cbot
Copy link
w3cbot commented Feb 13, 2025

This was discussed during the #did meeting on 13 February 2025.

View the transcript

w3c/did-resolution#118

markus_sabadello: for issue 40, I might have misstated the desire, will look into it.

markus_sabadello: This next one is around HTTP endpoint, OpenAPI definition, Ivan wondered if it should be normative or informative -- currently not in our repository, in DIF repository, but interesting question. Should OpenAPI be in our WG and should it be normative/informative.

manu: We have included an OpenAPI spec in the VC-API, but it's informative. There is an experimental Respec plugin that can render OpenAPI specs.

manu: The .oas fi 645A les are informative. But in the Respec file, we "transclude" certain part of the OAS files, and that becomes normative in the specification.

manu: It's a hybrid, but it helps to avoid mistakes in the .oas files

manu: If there is ever a bug in the .oas files, the spec is normative.

https://w3c-ccg.github.io/vc-api/#verify-credential

manu: In this example, the requests and responses come from the .oas files directly

manu: We could follow that same path here.

manu: Or we say the spec is normative and .oas is informative, but then the question is what happens if they are inconsistent

Wip: Do we need the OpenAPI spec at all?

Wip: we're just defining the resolve function, right?

markus_sabadello: Yes, the OAS for DID Resolution only has one endpoint, but there are quite some logic embedded in that related to content type and accept headers and returning just the DID Document, or DID Resolution result, all metadata stuff; we'd have to try it out.

manu: We want to make things easier for developers, having OAS files is useful.

<pchampin> +1 to make the developers life easier

ivan: Is it an option to have an OAS file that is normative -- is it stable/referenceable from W3C's point of view?

manu: The OAS spec is stable, so we can cite it.

ivan: I'm talking about the specific OAS files themselves, if they're in TR, can we just use those?

ivan: Is it an option at all? I don't see a problem keeping it out of the document, but in same repo, which is in /TR -- that's fine, it's ok.

Wip: ok, sounds good, let's move on -- figure out how to integrate.


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

No branches or pull requests

3 participants
0