Skip to content

Commit b533d94

Browse files
author
Konrad Jamrozik
authored
Fixups to dir structure docs (#28606)
1 parent 5cb000c commit b533d94

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ External Contributors can read [Getting Started with OpenAPI Specifications](htt
2020

2121
## Directory Structure
2222

23-
See [directory-structure.md](./documentation/directory-structure.md) for details on the directory structure of this repository.
23+
See [aka.ms/azsdk/spec-dirs](https://aka.ms/azsdk/spec-dirs).
2424

2525
## Next steps
2626

documentation/directory-structure.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,18 +96,18 @@ Putting everything together discussed, the directory structure of a singular `sp
9696
/resource-manager/README.md
9797
/resource-manager/<RPNS>/stable/<apiVersion1>/*.json
9898
/resource-manager/<RPNS>/stable/<apiVersion1>/examples/*.json
99-
/<apiVersion2>/ ... # multiple 'apiVer' folders
99+
/<apiVersion2>/ ... # multiple '<apiVersion>' folders
100100
/resource-manager/<RPNS>/preview/<apiVersion3-preview>/*.json
101101
/resource-manager/<RPNS>/preview/<apiVersion3-preview>/examples/*.json
102-
/<apiVersion4-preview>/ ... # multiple 'apiVer-preview' folders
102+
/<apiVersion4-preview>/ ... # multiple '<apiVersion-preview>' folders
103103

104104
/data-plane/README.md
105105
/data-plane/<dataPlaneSubfolder1>/stable/<apiVersion5>/*.json
106106
/data-plane/<dataPlaneSubfolder1>/stable/<apiVersion5>/examples/*.json
107-
/<apiVersion6>/ ... # multiple 'apiVer' folders
107+
/<apiVersion6>/ ... # multiple '<apiVersion>' folders
108108
/data-plane/<dataPlaneSubfolder1>/preview/<apiVersion7-preview>/*.json
109109
/data-plane/<dataPlaneSubfolder1>/preview/<apiVersion7-preview>/examples/*.json
110-
/<apiVersion8-preview>/ ... # multiple 'apiVer-preview' folders
110+
/<apiVersion8-preview>/ ... # multiple '<apiVersion-preview>' folders
111111
/<dataPlaneSubfolder2>/ ... # multiple '<dataPlaneSubfolder>' folders
112112

113113
```

documentation/typespec-structure-guidelines.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
- [Repository Guidelines for TypeSpec Projects](#repository-guidelines-for-typeSpec-projects)
1+
- [Repository Guidelines for TypeSpec projects](#repository-guidelines-for-typespec-projects)
22
- [Purpose](#purpose)
33
- [Repository](#repository)
4-
- [Structure Overview](#structure-overview)
4+
- [Directory Structure Overview](#directory-structure-overview)
55
- [Service Folders](#service-folders)
66
- [Packages](#packages)
77
- [Structure](#structure)
@@ -14,6 +14,11 @@
1414

1515
# Repository Guidelines for TypeSpec projects
1616

17+
<!-- TODO:
18+
Documentation: update the TypeSpec directory structure guidance in the specs repo
19+
https://github.com/Azure/azure-sdk-tools/issues/8028
20+
-->
21+
1722
## Purpose
1823

1924
We need to formulate a strategy for checking in actual TypeSpec projects for Azure. Service teams need to know where
@@ -25,7 +30,10 @@ library, and to maximize the benefits of TypeSpec, this approach needs to be sup
2530

2631
TypeSpec can co-exist with Swagger within the existing `azure-rest-api-specs` repository. This approach will make it easier to generate Swagger artifacts without needing to sync between repos at the downside of having to live with any baggage associated with the repo as it ages. There are currently over 1,000 issues and 500 open PRs in this repo.
2732

28-
## Structure Overview
33+
## Directory Structure Overview
34+
35+
This section describes the directory structure of `specification/<azureTeam>/<typeSpecFolder>` set of folders,
36+
as elaborated on in the [`specification` folder directory structure] article.
2937

3038
This proposal strives to align with [Azure SDK Repo Structure Guidelines](https://azure.github.io/azure-sdk/policies_repostructure.html).
3139

@@ -156,3 +164,5 @@ The purest approach to publish a spec is to merge the PR that modifies the TypeS
156164
In the event that a major break makes it infeasible to continue using a spec with version annotations, the spec could be reset to some base version (likely the breaking one) and continue versioning from there. The commit hash or tag that represented the spec prior to the reset would need to be tracked in order to regenerate older versions of the spec. At this point, if an update was needed to an older version of the spec no longer represented on the latest commit on `main`, we would need a servicing branch and update the hash pointers to the commit on that servicing branch.
157165

158166
This option is only suitable for _public_ previews. Private previews should live solely in a branch (in either the public or private repo) until/unless they become a public preview.
167+
168+
[`specification` folder directory structure]: https://aka.ms/azsdk/spec-dirs

0 commit comments

Comments
 (0)