dbt-labs / dbt-jsonschema

Apache License 2.0
109 stars 40 forks source link

Fix "selectors" file name in README for JetBrains config #115

Closed H-Max closed 5 months ago

H-Max commented 5 months ago

Hey there, I think it's worth mentioning that in JetBrains IDE, the configuration is done per project.

But there is a way to import the JSON validation config using the .idea/jsonSchemas.xml file and copying it from one project to another. I can open another MR with this info if you want me to.

Example with just a single pattern:

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="JsonSchemaMappingsProjectConfiguration">
    <state>
      <map>
        <entry key="dbt / packages">
          <value>
            <SchemaInfo>
              <option name="generatedName" value="New Schema" />
              <option name="name" value="dbt / packages" />
              <option name="relativePathToSchema" value="https://raw.githubusercontent.com/dbt-labs/dbt-jsonschema/main/schemas/packages.json" />
              <option name="schemaVersion" value="JSON Schema version 7" />
              <option name="patterns">
                <list>
                  <Item>
                    <option name="path" value="packages.yml " />
                  </Item>
                </list>
              </option>
            </SchemaInfo>
          </value>
        </entry>
      </map>
    </state>
  </component>
</project>