Comments (10)
@lmazuel let's just go with what you have for the time being and bring this up in the next design discussion.
/cc @sphibbs
from azure-rest-api-specs.
from azure-rest-api-specs.
I like this idea. Those should all be relative paths.
from azure-rest-api-specs.
I am not sure if that is a good idea. I may be having swagger specs at two different locations that are not relative to a common base folder. With absolute paths, you can still compose them.
This is a low hanging fruit among all the items that we need to solve.
from azure-rest-api-specs.
If multiple spec files are not organized in a way that it's 'common' to something, i.e. the common base path, then is it a good idea to proceed the composition without checking?
For example, we want to composite the Compute client family (Compute\VM, Compute\VMSS...), but it's hardly likely to composite Compute with Storage RP clients?
from azure-rest-api-specs.
any update?
from azure-rest-api-specs.
@devigned @amarzavery
By changing this PR to use relative from the repo root, now it's working:
#359
By what do you think makes more sense? Change regarding to the repo root, or the composite file folder?
from azure-rest-api-specs.
@amarzavery is OOF for a bit.
I think the issue we had before was that there is no real idea of root without the entire directory structure. Basically, with absolute URIs, the composite document can stand on it's own.
I like the relative URI's. I think following JSON Reference would make the most sense. Thoughts?
from azure-rest-api-specs.
@devigned For what I see, JSON reference is too much complicated for our needs here. We don't need the ability to point inside the document with an anchor. But they give a recommendation about the relative uri solving:
If the URI contained in the JSON Reference value is a relative URI, then the base URI resolution MUST be calculated according to [RFC3986], section 5.2. Resolution is performed relative to the referring document.
According to this, the right relative path is regarding the place of the composite file.
Then the composite for Compute should be:
{
"info": {
"title": "ComputeManagementClient",
"description": "Composite Swagger for Compute Client"
},
"documents": [
"./2016-03-30/swagger/compute.json",
"./2016-03-30/swagger/containerService.json"
]
}
and not
{
"info": {
"title": "ComputeManagementClient",
"description": "Composite Swagger for Compute Client"
},
"documents": [
"./arm-compute/2016-03-30/swagger/compute.json",
"./arm-compute/2016-03-30/swagger/containerService.json"
]
}
Agree? If you agree, it will be better to block #359 until I made the update in the script and they push a new commit with the right version.
from azure-rest-api-specs.
This has been done last year.
from azure-rest-api-specs.
Related Issues (20)
- [Question] Will the path /files/{file_id}/content be implemented? HOT 3
- [TypeSpec Validation] Require that resource-manager specs set "use-read-only-status-schema: true"
- [Project Vienna Services - Machine Learning Service] API Review HOT 1
- [BUG] datafactory@2018-06-01: `webactivities.typeproperties.headers` does not match the real response
- Is the Virtual Network Gateway Private IP Address Allocation parameter pointless? HOT 4
- [Application Insights - Azure Monitor] API Review
- [BUG] [RecoveryServices@2022-10-01]: Create Vault with `SystemAssigned, UserAssigned` identity type not work HOT 2
- [BUG] Recvery Services Vault, GET on async operation of creation returned 404 HOT 1
- [RiskIQ - EASM - Defender EASM] .NET SDK review follow up
- [IC3 ACS Server Calling ] API Review
- [BUG] DatabaseWatcher Enum is named "string" HOT 2
- [BUG] The ResponsibleAIPolicyViolation doesn't recognize the intent of the request and flags as violent a lot of content
- Pipeline for `typespec-next` should verify the `next` version of each package is used
- paths for Static Site basic auth is incorrect, missing `config` segment. HOT 1
- [BUG] operation Certificates_CreateOrUpdate returns response with status code 202 which constitutes an error by swagger HOT 1
- [BUG] After deleting sql managed instance, one of the hidden `microsoft.network/networkintentpolicies` type files is not automatically deleted HOT 1
- [FEATURE REQ] Support setting Key Vault Certificate Contact in Control Plane API. HOT 1
- [TypeSpec Validation] Pipeline fails to validate changes in PRs to typespec-next HOT 1
- [BUG] System Center Virtual Machine Manager Inventory Items List API cannot immediately return a list of Inventory Items after System Center Virtual Machine Manager Server is created HOT 2
- [TypeSpecValidation] Add rule requiring tspconfig.yaml to contain "flavor: azure" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-rest-api-specs.