()
| 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 | |
| 161 | func 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"), |
no test coverage detected