MCPcopy Create free account
hub / github.com/Effect-TS/tsgo / effectLanguageServicePluginOptionsSchema

Function effectLanguageServicePluginOptionsSchema

etscore/options_schema_test.go:152–176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150 "additionalProperties": false,
151 "properties": properties,
152 "required": []string{"name"},
153 }
154 properties["name"] = map[string]any{
155 "type": "string",
156 "const": etscore.EffectPluginName,
157 }
158 return schema
159}
160
161func effectLanguageServicePluginOptionsSchema() map[string]any {
162 schema := reflectedSchemaForStruct(reflect.TypeOf(etscore.EffectPluginOptions{}))
163 properties := schema["properties"].(map[string]any)
164 properties["diagnosticSeverity"] = map[string]any{
165 "$ref": "#/definitions/effectLanguageServicePluginDiagnosticSeverityDefinition",
166 "description": structFieldTag(reflect.TypeOf(etscore.EffectPluginOptions{}), "DiagnosticSeverity", "schema_description"),
167 "default": map[string]any{},
168 }
169 properties["keyPatterns"] = map[string]any{
170 "type": "array",
171 "description": structFieldTag(reflect.TypeOf(etscore.EffectPluginOptions{}), "KeyPatterns", "schema_description"),
172 "default": etscore.DefaultKeyPatterns,
173 "items": map[string]any{
174 "$ref": "#/definitions/effectLanguageServicePluginKeyPatternDefinition",
175 },
176 }
177 properties["overrides"] = map[string]any{
178 "type": "array",
179 "description": structFieldTag(reflect.TypeOf(etscore.EffectPluginOptions{}), "Overrides", "schema_description"),

Callers 2

generateTSConfigSchemaFunction · 0.85

Calls 2

reflectedSchemaForStructFunction · 0.85
structFieldTagFunction · 0.85

Tested by

no test coverage detected