Skip to content

Commit

Permalink
feat(docs): enable yaml-language-server in generators.yml across Fe…
Browse files Browse the repository at this point in the history
…rn's Fern Definitions (#5273)

add lang server
  • Loading branch information
dannysheridan authored Nov 25, 2024
1 parent 92826df commit c7c0b85
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
2 changes: 2 additions & 0 deletions fern/apis/docs-yml/generators.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# yaml-language-server: $schema=https://schema.buildwithfern.dev/generators-yml.json

default-group: local
groups:
local:
Expand Down
2 changes: 2 additions & 0 deletions fern/apis/fern-definition/generators.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# yaml-language-server: $schema=https://schema.buildwithfern.dev/generators-yml.json

default-group: local
groups:
local:
Expand Down
3 changes: 2 additions & 1 deletion fern/apis/fhir/generators.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# default-group: sdks
# yaml-language-server: $schema=https://schema.buildwithfern.dev/generators-yml.json

groups:
sdks:
generators:
Expand Down
2 changes: 2 additions & 0 deletions fern/apis/generators-yml/generators.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# yaml-language-server: $schema=https://schema.buildwithfern.dev/generators-yml.json

default-group: local
groups:
local:
Expand Down
3 changes: 2 additions & 1 deletion fern/apis/public-api/generators.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# yaml-language-server: $schema=https://schema.buildwithfern.dev/generators-yml.json

groups:
node-sdk:
audiences:
Expand Down Expand Up @@ -40,7 +42,6 @@ groups:
coordinate: com.fern.api:fern-java-sdk
username: fernapi
password: ${MAVEN_PASSWORD}
# TODO: uncomment after this config is released
signature:
keyId: ${MAVEN_CENTRAL_SECRET_KEY_KEY_ID}
password: ${MAVEN_CENTRAL_SECRET_KEY_PASSWORD}
Expand Down
8 changes: 3 additions & 5 deletions fern/pages/sdks/introduction/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,8 @@ metadata:

## Schema Validation

Add the following line to the top of your `generators.yml` to enable schema validation:
Add the following as a comment in your `generators.yml` to enable schema validation, ensuring that your configuration is correct. Check out an example in [Cartesia's Fern Folder](https://github.com/cartesia-ai/docs/blob/43b143f66845d90bffbd0ef1951fd812229d95c0/fern/generators.yml#L1).

```yaml
# yaml-language-server: $schema=https://schema.buildwithfern.dev/generators-yml.json
```

This will enable schema validation in your editor, ensuring that your configuration is correct.
yaml-language-server: $schema=https://schema.buildwithfern.dev/generators-yml.json
```

0 comments on commit c7c0b85

Please sign in to comment.