codify-schemas 1.0.38 → 1.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,12 +7,12 @@
7
7
  "type": {
8
8
  "description": "The resource type",
9
9
  "type": "string",
10
- "pattern": "^[a-zA-Z-_][\\w-]+$"
10
+ "pattern": "^[a-zA-Z][\\w-]+$"
11
11
  },
12
12
  "name": {
13
13
  "description": "Optional name. Useful for specifying multiple resources of the same type",
14
14
  "type": "string",
15
- "pattern": "^[a-zA-Z-_][\\w-]+$"
15
+ "pattern": "^[\\w-]+$"
16
16
  },
17
17
  "dependsOn": {
18
18
  "type": "array",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codify-schemas",
3
- "version": "1.0.38",
3
+ "version": "1.0.39",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -7,12 +7,12 @@
7
7
  "type": {
8
8
  "description": "The resource type",
9
9
  "type": "string",
10
- "pattern": "^[a-zA-Z-_][\\w-]+$"
10
+ "pattern": "^[a-zA-Z][\\w-]+$"
11
11
  },
12
12
  "name": {
13
13
  "description": "Optional name. Useful for specifying multiple resources of the same type",
14
14
  "type": "string",
15
- "pattern": "^[a-zA-Z-_][\\w-]+$"
15
+ "pattern": "^[\\w-]+$"
16
16
  },
17
17
  "dependsOn": {
18
18
  "type": "array",
@@ -24,7 +24,8 @@ describe("Resource schema tests", () => {
24
24
  expect(validate({ type: "ABCDEF$"})).to.be.false;
25
25
 
26
26
  expect(validate({ type: "type", name: "a234abcDEF_-"})).to.be.true;
27
- expect(validate({ type: "type", name: "234"})).to.be.false;
27
+ expect(validate({ type: "type", name: "0"})).to.be.true;
28
+ expect(validate({ type: "type", name: "[]"})).to.be.false;
28
29
  expect(validate({ type: "type", name: "ABCDEF$"})).to.be.false;
29
30
  });
30
31
 
@@ -1,4 +1,4 @@
1
- import { SpawnOptions } from "node:child_process";
1
+ import {SpawnOptions} from "node:child_process";
2
2
 
3
3
  export interface StringIndexedObject {
4
4
  [x: string]: unknown;
@@ -1,32 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "title": "Config file Schema",
4
- "type": "object",
5
- "properties": {
6
- "$id": {
7
- "type": "string",
8
- "pattern": "^https://www.codify.com/"
9
- },
10
- "type": {
11
- "const": "object"
12
- },
13
- "properties": {
14
- "type": "object",
15
- "properties": {
16
- "type": false,
17
- "name": false,
18
- "dependsOn": false,
19
- "$ref": {
20
- "const": "https://www.codify.com/resource-schema.json#properties"
21
- }
22
- }
23
- },
24
- "$ref": {
25
- "const": "https://www.codify.com/resource-schema.json"
26
- },
27
- "unevaluatedProperties": {
28
- "const": false
29
- }
30
- },
31
- "required": ["unevaluatedProperties", "$ref"]
32
- }