@dmdata/telegram-json-types 1.1.13 → 1.1.15
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.
- package/README.md +6 -1
- package/dist/build.d.ts +1 -1
- package/dist/build.js +72 -68
- package/dist/config.d.ts +3 -3
- package/dist/config.js +7 -7
- package/dist/jschema/earthquake-counts_1.0.0.json +1 -1
- package/dist/jschema/earthquake-explanation_1.0.0.json +1 -1
- package/dist/jschema/earthquake-hypocenter-update_1.0.0.json +1 -1
- package/dist/jschema/earthquake-information_1.0.0.json +1 -1
- package/dist/jschema/earthquake-information_1.1.0.json +1 -1
- package/dist/jschema/earthquake-nankai_1.0.0.json +1 -1
- package/dist/jschema/eew-information_1.0.0.json +1 -1
- package/dist/jschema/forecast-2week-temperature_1.0.0.json +1 -0
- package/dist/jschema/forecast-prefecture_1.0.0.json +1 -0
- package/dist/jschema/forecast-season_1.0.0.json +1 -0
- package/dist/jschema/forecast-warning-possibility_1.0.0.json +1 -0
- package/dist/jschema/forecast-weathermap_1.0.0.json +1 -0
- package/dist/jschema/tsunami-information_1.0.0.json +1 -1
- package/dist/jschema/volcano-information_1.0.0.json +1 -1
- package/dist/jschema/weather-early_1.0.0.json +1 -1
- package/dist/jschema/weather-impact-society_1.0.0.json +1 -1
- package/dist/jschema/weather-impact-society_1.0.1.json +1 -0
- package/dist/jschema/weather-information_1.0.0.json +1 -1
- package/dist/jschema/weather-landslide_1.0.0.json +1 -1
- package/dist/jschema/weather-river-flood_1.0.0.json +1 -1
- package/dist/jschema/weather-tornado_1.0.0.json +1 -1
- package/dist/jschema/weather-typhoon_1.0.0.json +1 -1
- package/dist/jschema/weather-warning_1.0.0.json +1 -1
- package/dist/jschema-load.d.ts +1 -1
- package/dist/jschema-load.js +48 -44
- package/package.json +11 -12
- package/test/sample-schema-check.test.ts +23 -14
- package/types/component/coordinate.d.ts +6 -6
- package/types/component/earthquake.d.ts +4 -4
- package/types/component/unit-value.d.ts +2 -2
- package/types/index.d.ts +18 -2
- package/types/schema/earthquake-counts/1.0.0.d.ts +6 -6
- package/types/schema/earthquake-explanation/1.0.0.d.ts +6 -6
- package/types/schema/earthquake-hypocenter-update/1.0.0.d.ts +6 -6
- package/types/schema/earthquake-information/1.0.0.d.ts +17 -17
- package/types/schema/earthquake-information/1.1.0.d.ts +43 -26
- package/types/schema/earthquake-nankai/1.0.0.d.ts +12 -12
- package/types/schema/eew-information/1.0.0.d.ts +16 -16
- package/types/schema/forecast-2week-temperature/1.0.0.d.ts +110 -0
- package/types/schema/forecast-2week-temperature/index.d.ts +7 -0
- package/types/schema/forecast-prefecture/1.0.0.d.ts +526 -0
- package/types/schema/forecast-prefecture/index.d.ts +7 -0
- package/types/schema/forecast-season/1.0.0.d.ts +169 -0
- package/types/schema/forecast-season/index.d.ts +7 -0
- package/types/schema/forecast-warning-possibility/1.0.0.d.ts +382 -0
- package/types/schema/forecast-warning-possibility/index.d.ts +7 -0
- package/types/schema/forecast-weathermap/1.0.0.d.ts +194 -0
- package/types/schema/forecast-weathermap/index.d.ts +7 -0
- package/types/schema/tsunami-information/1.0.0.d.ts +26 -26
- package/types/schema/volcano-information/1.0.0.d.ts +25 -25
- package/types/schema/weather-early/1.0.0.d.ts +0 -25
- package/types/schema/weather-impact-society/1.0.0.d.ts +7 -5
- package/types/schema/weather-impact-society/1.0.1.d.ts +117 -0
- package/types/schema/weather-impact-society/index.d.ts +3 -1
- package/types/schema/weather-information/1.0.0.d.ts +43 -6
- package/types/schema/weather-landslide/1.0.0.d.ts +3 -3
- package/types/schema/weather-river-flood/1.0.0.d.ts +3 -3
- package/types/schema/weather-tornado/1.0.0.d.ts +2 -2
- package/types/schema/weather-typhoon/1.0.0.d.ts +3 -3
- package/types/schema/weather-warning/1.0.0.d.ts +11 -11
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ const data = await fetch('https://data.api.dmdata.jp/v1/...')
|
|
|
22
22
|
|
|
23
23
|
## JSON Schema による整合性チェック
|
|
24
24
|
|
|
25
|
-
Telegram JSON
|
|
25
|
+
Telegram JSON が、仕様通り整合するかチェックができます。
|
|
26
26
|
|
|
27
27
|
`$ npm i @dmdata/telegram-json-types ajv`
|
|
28
28
|
|
|
@@ -57,6 +57,11 @@ check();
|
|
|
57
57
|
* [EarthquakeHypocenterUpdate](https://dmdata.jp/doc/reference/conversion/json/schema/earthquake-hypocenter-update)
|
|
58
58
|
* [EarthquakeNankai](https://dmdata.jp/doc/reference/conversion/json/schema/earthquake-nankai)
|
|
59
59
|
* [EewInformation](https://dmdata.jp/doc/reference/conversion/json/schema/eew-information)
|
|
60
|
+
* [Forecast2weekTemperature](https://dmdata.jp/doc/reference/conversion/json/schema/forecast-2week-temperature)
|
|
61
|
+
* [ForecastPrefecture](https://dmdata.jp/doc/reference/conversion/json/schema/forecast-prefecture)
|
|
62
|
+
* [ForecastSeason](https://dmdata.jp/doc/reference/conversion/json/schema/forecast-season)
|
|
63
|
+
* [ForecastWarningPossibility](https://dmdata.jp/doc/reference/conversion/json/schema/forecast-warning-possibility)
|
|
64
|
+
* [ForecastWeathermap](https://dmdata.jp/doc/reference/conversion/json/schema/forecast-weathermap)
|
|
60
65
|
* [TsunamiInformation](https://dmdata.jp/doc/reference/conversion/json/schema/tsunami-information)
|
|
61
66
|
* [VolcanoInformation](https://dmdata.jp/doc/reference/conversion/json/schema/volcano-information)
|
|
62
67
|
* [WeatherInformation](https://dmdata.jp/doc/reference/conversion/json/schema/weather-information)
|
package/dist/build.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/dist/build.js
CHANGED
|
@@ -1,68 +1,72 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
.
|
|
43
|
-
.
|
|
44
|
-
.then(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
const path_1 = require("path");
|
|
27
|
+
const promises_1 = require("fs/promises");
|
|
28
|
+
const TJS = __importStar(require("typescript-json-schema"));
|
|
29
|
+
const config_1 = require("./config");
|
|
30
|
+
const settings = {
|
|
31
|
+
required: true,
|
|
32
|
+
};
|
|
33
|
+
const compilerOptions = {
|
|
34
|
+
strictNullChecks: true,
|
|
35
|
+
paths: {
|
|
36
|
+
'@t/*': [
|
|
37
|
+
config_1.baseDir + '/*'
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
(0, promises_1.readdir)(config_1.schemaDir, { withFileTypes: true })
|
|
42
|
+
.then(dirs => dirs.filter(dir => dir.isDirectory())
|
|
43
|
+
.map(async (dir) => [dir.name, await (0, promises_1.readdir)((0, path_1.resolve)(config_1.schemaDir, dir.name))]))
|
|
44
|
+
.then(dirs => Promise.all(dirs))
|
|
45
|
+
.then(dirs => dirs
|
|
46
|
+
.flatMap(([dir, files]) => files.map(file => (0, path_1.resolve)(config_1.schemaDir, dir, file)))
|
|
47
|
+
.filter(file => /(\d+\.\d+\.\d+)(\.d)?\.ts$/.test(file)))
|
|
48
|
+
.then(files => programTypescript(files));
|
|
49
|
+
async function programTypescript(files) {
|
|
50
|
+
const tsTypeFiles = files.filter(file => /\.ts$/.test(file));
|
|
51
|
+
const objectMaps = tsTypeFiles.map(file => tsTypeFileName2TypeSymbolName(file));
|
|
52
|
+
await (0, promises_1.rm)(config_1.distDir, { recursive: true, force: true });
|
|
53
|
+
await (0, promises_1.mkdir)(config_1.distDir, { recursive: true });
|
|
54
|
+
for (let i = 0; i < objectMaps.length; i++) {
|
|
55
|
+
const { schemaName, schemaVersion, typeName, file } = objectMaps[i];
|
|
56
|
+
const program = TJS.getProgramFromFiles([file], compilerOptions, config_1.baseDir);
|
|
57
|
+
const schema = TJS.generateSchema(program, typeName, settings);
|
|
58
|
+
console.log(`Build ok: ${schemaName}:${schemaVersion} => ${typeName}`);
|
|
59
|
+
await (0, promises_1.writeFile)((0, path_1.resolve)(config_1.distDir, `${schemaName}_${schemaVersion}.json`), JSON.stringify(schema));
|
|
60
|
+
}
|
|
61
|
+
console.log('Build complete');
|
|
62
|
+
}
|
|
63
|
+
function tsTypeFileName2TypeSymbolName(file) {
|
|
64
|
+
const [, schemaName = null, schemaVersion = null] = file.match(/([\w-]+?)[\\/](\d+\.\d+\.\d+)(\.d)?\.ts$/) ?? [];
|
|
65
|
+
const nameScope = schemaName?.replace(/-(\w)|(^\w)/g, (match, p1 = '', p2 = '') => `${p1}${p2}`.toUpperCase());
|
|
66
|
+
return {
|
|
67
|
+
schemaName,
|
|
68
|
+
schemaVersion,
|
|
69
|
+
typeName: nameScope + '.Main',
|
|
70
|
+
file
|
|
71
|
+
};
|
|
72
|
+
}
|
package/dist/config.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const baseDir: string;
|
|
2
|
-
export declare const schemaDir: string;
|
|
3
|
-
export declare const distDir: string;
|
|
1
|
+
export declare const baseDir: string;
|
|
2
|
+
export declare const schemaDir: string;
|
|
3
|
+
export declare const distDir: string;
|
package/dist/config.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.distDir = exports.schemaDir = exports.baseDir = void 0;
|
|
4
|
-
const path_1 = require("path");
|
|
5
|
-
exports.baseDir = (0, path_1.resolve)(__dirname, '../types/');
|
|
6
|
-
exports.schemaDir = (0, path_1.resolve)(exports.baseDir, '../types/schema/');
|
|
7
|
-
exports.distDir = (0, path_1.resolve)(__dirname, '../dist/jschema/');
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.distDir = exports.schemaDir = exports.baseDir = void 0;
|
|
4
|
+
const path_1 = require("path");
|
|
5
|
+
exports.baseDir = (0, path_1.resolve)(__dirname, '../types/');
|
|
6
|
+
exports.schemaDir = (0, path_1.resolve)(exports.baseDir, '../types/schema/');
|
|
7
|
+
exports.distDir = (0, path_1.resolve)(__dirname, '../dist/jschema/');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"anyOf":[{"$ref":"#/definitions/EarthquakeCounts.Public"},{"$ref":"#/definitions/EarthquakeCounts.Cancel"}],"definitions":{"EarthquakeCounts.Public":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeCounts.Schema"},"type":{"type":"string","
|
|
1
|
+
{"anyOf":[{"$ref":"#/definitions/EarthquakeCounts.Public"},{"$ref":"#/definitions/EarthquakeCounts.Cancel"}],"definitions":{"EarthquakeCounts.Public":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeCounts.Schema"},"type":{"type":"string","const":"地震回数に関する情報"},"title":{"type":"string","const":"地震回数に関する情報"},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"string"},"infoKind":{"type":"string","const":"地震回数情報"},"body":{"$ref":"#/definitions/EarthquakeCounts.PublicBody"},"_originalId":{"type":"string"},"status":{"enum":["訓練","試験","通常"],"type":"string"},"editorialOffice":{"type":"string"},"publishingOffice":{"type":"array","items":{"type":"string"}},"pressDateTime":{"type":"string"},"reportDateTime":{"type":"string"},"targetDateTime":{"type":"string"},"infoKindVersion":{"type":"string"},"headline":{"type":["null","string"]}},"required":["_originalId","_schema","body","editorialOffice","eventId","headline","infoKind","infoKindVersion","infoType","pressDateTime","publishingOffice","reportDateTime","serialNo","status","targetDateTime","title","type"]},"EarthquakeCounts.Schema":{"type":"object","properties":{"type":{"type":"string","const":"earthquake-counts"},"version":{"type":"string","const":"1.0.0"}},"required":["type","version"]},"EarthquakeCounts.PublicBody":{"type":"object","properties":{"earthquakeCounts":{"type":"array","items":{"$ref":"#/definitions/EarthquakeCounts.EarthquakeCount"}},"nextAdvisory":{"type":"string"},"text":{"type":"string"},"comments":{"$ref":"#/definitions/EarthquakeCounts.Comments"}}},"EarthquakeCounts.EarthquakeCount":{"type":"object","properties":{"type":{"enum":["地震回数","累積地震回数","1時間地震回数"],"type":"string"},"targetTime":{"$ref":"#/definitions/EarthquakeCounts.EarthquakeCountTargetTime"},"values":{"$ref":"#/definitions/EarthquakeCounts.EarthquakeCountValues"}},"required":["targetTime","type","values"]},"EarthquakeCounts.EarthquakeCountTargetTime":{"type":"object","properties":{"start":{"type":"string"},"end":{"type":"string"}},"required":["end","start"]},"EarthquakeCounts.EarthquakeCountValues":{"type":"object","properties":{"all":{"type":["null","string"]},"felt":{"type":["null","string"]}},"required":["all","felt"]},"EarthquakeCounts.Comments":{"type":"object","properties":{"free":{"type":"string"}},"required":["free"]},"EarthquakeCounts.Cancel":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeCounts.Schema"},"type":{"type":"string","const":"地震回数に関する情報"},"title":{"type":"string","const":"地震回数に関する情報"},"infoType":{"type":"string","const":"取消"},"eventId":{"type":"string"},"serialNo":{"type":"string"},"infoKind":{"type":"string","const":"地震回数情報"},"body":{"$ref":"#/definitions/EarthquakeCounts.CancelBody"},"_originalId":{"type":"string"},"status":{"enum":["訓練","試験","通常"],"type":"string"},"editorialOffice":{"type":"string"},"publishingOffice":{"type":"array","items":{"type":"string"}},"pressDateTime":{"type":"string"},"reportDateTime":{"type":"string"},"targetDateTime":{"type":"string"},"infoKindVersion":{"type":"string"},"headline":{"type":["null","string"]}},"required":["_originalId","_schema","body","editorialOffice","eventId","headline","infoKind","infoKindVersion","infoType","pressDateTime","publishingOffice","reportDateTime","serialNo","status","targetDateTime","title","type"]},"EarthquakeCounts.CancelBody":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]}},"$schema":"http://json-schema.org/draft-07/schema#"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"anyOf":[{"$ref":"#/definitions/EarthquakeExplanation.Public"},{"$ref":"#/definitions/EarthquakeExplanation.Cancel"}],"definitions":{"EarthquakeExplanation.Public":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeExplanation.Schema"},"type":{"type":"string","
|
|
1
|
+
{"anyOf":[{"$ref":"#/definitions/EarthquakeExplanation.Public"},{"$ref":"#/definitions/EarthquakeExplanation.Cancel"}],"definitions":{"EarthquakeExplanation.Public":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeExplanation.Schema"},"type":{"type":"string","const":"地震の活動状況等に関する情報"},"title":{"type":"string","const":"地震の活動状況等に関する情報"},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"null"},"infoKind":{"type":"string","const":"地震の活動状況等に関する情報"},"body":{"$ref":"#/definitions/EarthquakeExplanation.PublicBody"},"_originalId":{"type":"string"},"status":{"enum":["訓練","試験","通常"],"type":"string"},"editorialOffice":{"type":"string"},"publishingOffice":{"type":"array","items":{"type":"string"}},"pressDateTime":{"type":"string"},"reportDateTime":{"type":"string"},"targetDateTime":{"type":"string"},"infoKindVersion":{"type":"string"},"headline":{"type":["null","string"]}},"required":["_originalId","_schema","body","editorialOffice","eventId","headline","infoKind","infoKindVersion","infoType","pressDateTime","publishingOffice","reportDateTime","serialNo","status","targetDateTime","title","type"]},"EarthquakeExplanation.Schema":{"type":"object","properties":{"type":{"type":"string","const":"earthquake-explanation"},"version":{"type":"string","const":"1.0.0"}},"required":["type","version"]},"EarthquakeExplanation.PublicBody":{"type":"object","properties":{"naming":{"$ref":"#/definitions/EarthquakeExplanation.Naming"},"text":{"type":"string"},"comments":{"$ref":"#/definitions/EarthquakeExplanation.Comments"}},"required":["text"]},"EarthquakeExplanation.Naming":{"type":"object","properties":{"text":{"type":"string"},"en":{"type":"string"}},"required":["text"]},"EarthquakeExplanation.Comments":{"type":"object","properties":{"free":{"type":"string"}},"required":["free"]},"EarthquakeExplanation.Cancel":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeExplanation.Schema"},"type":{"type":"string","const":"地震の活動状況等に関する情報"},"title":{"type":"string","const":"地震の活動状況等に関する情報"},"infoType":{"type":"string","const":"取消"},"eventId":{"type":"string"},"serialNo":{"type":"null"},"infoKind":{"type":"string","const":"地震の活動状況等に関する情報"},"body":{"$ref":"#/definitions/EarthquakeExplanation.CancelBody"},"_originalId":{"type":"string"},"status":{"enum":["訓練","試験","通常"],"type":"string"},"editorialOffice":{"type":"string"},"publishingOffice":{"type":"array","items":{"type":"string"}},"pressDateTime":{"type":"string"},"reportDateTime":{"type":"string"},"targetDateTime":{"type":"string"},"infoKindVersion":{"type":"string"},"headline":{"type":["null","string"]}},"required":["_originalId","_schema","body","editorialOffice","eventId","headline","infoKind","infoKindVersion","infoType","pressDateTime","publishingOffice","reportDateTime","serialNo","status","targetDateTime","title","type"]},"EarthquakeExplanation.CancelBody":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]}},"$schema":"http://json-schema.org/draft-07/schema#"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"anyOf":[{"$ref":"#/definitions/EarthquakeHypocenterUpdate.Public"},{"$ref":"#/definitions/EarthquakeHypocenterUpdate.Cancel"}],"definitions":{"EarthquakeHypocenterUpdate.Public":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeHypocenterUpdate.Schema"},"type":{"type":"string","
|
|
1
|
+
{"anyOf":[{"$ref":"#/definitions/EarthquakeHypocenterUpdate.Public"},{"$ref":"#/definitions/EarthquakeHypocenterUpdate.Cancel"}],"definitions":{"EarthquakeHypocenterUpdate.Public":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeHypocenterUpdate.Schema"},"type":{"type":"string","const":"顕著な地震の震源要素更新のお知らせ"},"title":{"type":"string","const":"顕著な地震の震源要素更新のお知らせ"},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"null"},"infoKind":{"type":"string","const":"震源要素更新のお知らせ"},"body":{"$ref":"#/definitions/EarthquakeHypocenterUpdate.PublicBody"},"_originalId":{"type":"string"},"status":{"enum":["訓練","試験","通常"],"type":"string"},"editorialOffice":{"type":"string"},"publishingOffice":{"type":"array","items":{"type":"string"}},"pressDateTime":{"type":"string"},"reportDateTime":{"type":"string"},"targetDateTime":{"type":"string"},"infoKindVersion":{"type":"string"},"headline":{"type":["null","string"]}},"required":["_originalId","_schema","body","editorialOffice","eventId","headline","infoKind","infoKindVersion","infoType","pressDateTime","publishingOffice","reportDateTime","serialNo","status","targetDateTime","title","type"]},"EarthquakeHypocenterUpdate.Schema":{"type":"object","properties":{"type":{"type":"string","const":"earthquake-hypocenter-update"},"version":{"type":"string","const":"1.0.0"}},"required":["type","version"]},"EarthquakeHypocenterUpdate.PublicBody":{"type":"object","properties":{"earthquake":{"$ref":"#/definitions/Earthquake"},"text":{"type":"string"},"comments":{"$ref":"#/definitions/EarthquakeHypocenterUpdate.Comments"}},"required":["earthquake"]},"Earthquake":{"type":"object","properties":{"originTime":{"type":"string"},"arrivalTime":{"type":"string"},"hypocenter":{"$ref":"#/definitions/Hypocenter"},"magnitude":{"$ref":"#/definitions/Magnitude"}},"required":["arrivalTime","hypocenter","magnitude","originTime"]},"Hypocenter":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"coordinate":{"$ref":"#/definitions/Coordinate<\"日本測地系\"|undefined>"},"depth":{"$ref":"#/definitions/Depth"},"detailed":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"]},"auxiliary":{"type":"object","properties":{"text":{"type":"string"},"code":{"type":"string"},"name":{"type":"string"},"direction":{"type":"string"},"distance":{"$ref":"#/definitions/Omit<UnitValueNotNull<never,\"km\">,\"type\"|\"condition\">"}},"required":["code","direction","distance","name","text"]},"source":{"enum":["PTWC","USGS","WCATWC"],"type":"string"}},"required":["code","coordinate","depth","name"]},"Coordinate<\"日本測地系\"|undefined>":{"anyOf":[{"$ref":"#/definitions/CoordinateUnknown"},{"$ref":"#/definitions/CoordinateNormal<\"日本測地系\"|undefined>"}]},"CoordinateUnknown":{"type":"object","properties":{"condition":{"type":"string","const":"不明"}},"required":["condition"]},"CoordinateNormal<\"日本測地系\"|undefined>":{"type":"object","properties":{"latitude":{"type":"object","properties":{"text":{"type":"string"},"value":{"type":"string"}},"required":["text","value"]},"longitude":{"type":"object","properties":{"text":{"type":"string"},"value":{"type":"string"}},"required":["text","value"]},"height":{"type":"object","properties":{"type":{"type":"string","const":"高さ"},"unit":{"type":"string","const":"m"},"value":{"type":"string"}},"required":["type","unit","value"]},"geodeticSystem":{"const":"日本測地系","type":"string"}},"required":["latitude","longitude"]},"Depth":{"anyOf":[{"$ref":"#/definitions/DepthNormal"},{"$ref":"#/definitions/DepthShallow"},{"$ref":"#/definitions/DepthDeep"},{"$ref":"#/definitions/DepthUnknown"}]},"DepthNormal":{"type":"object","properties":{"value":{"type":"string"},"type":{"type":"string","const":"深さ"},"unit":{"type":"string","const":"km"}},"required":["type","unit","value"]},"DepthShallow":{"type":"object","properties":{"value":{"type":"string","const":"0"},"condition":{"type":"string","const":"ごく浅い"},"type":{"type":"string","const":"深さ"},"unit":{"type":"string","const":"km"}},"required":["condition","type","unit","value"]},"DepthDeep":{"type":"object","properties":{"value":{"type":"string","const":"700"},"condition":{"type":"string","const":"700km以上"},"type":{"type":"string","const":"深さ"},"unit":{"type":"string","const":"km"}},"required":["condition","type","unit","value"]},"DepthUnknown":{"type":"object","properties":{"value":{"type":"null"},"condition":{"type":"string","const":"不明"},"type":{"type":"string","const":"深さ"},"unit":{"type":"string","const":"km"}},"required":["condition","type","unit","value"]},"Omit<UnitValueNotNull<never,\"km\">,\"type\"|\"condition\">":{"type":"object","properties":{"value":{"type":"string"},"unit":{"type":"string","const":"km"}},"required":["unit","value"]},"Magnitude":{"anyOf":[{"$ref":"#/definitions/MagnitudeNormal"},{"$ref":"#/definitions/MagnitudeUnknown"}]},"MagnitudeNormal":{"type":"object","properties":{"value":{"type":"string"},"type":{"type":"string","const":"マグニチュード"},"unit":{"enum":["M","Mj"],"type":"string"}},"required":["type","unit","value"]},"MagnitudeUnknown":{"type":"object","properties":{"value":{"type":"null"},"condition":{"enum":["M不明","M8を超える巨大地震"],"type":"string"},"type":{"type":"string","const":"マグニチュード"},"unit":{"enum":["M","Mj"],"type":"string"}},"required":["condition","type","unit","value"]},"EarthquakeHypocenterUpdate.Comments":{"type":"object","properties":{"free":{"type":"string"}},"required":["free"]},"EarthquakeHypocenterUpdate.Cancel":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeHypocenterUpdate.Schema"},"type":{"type":"string","const":"顕著な地震の震源要素更新のお知らせ"},"title":{"type":"string","const":"顕著な地震の震源要素更新のお知らせ"},"infoType":{"type":"string","const":"取消"},"eventId":{"type":"string"},"serialNo":{"type":"null"},"infoKind":{"type":"string","const":"震源要素更新のお知らせ"},"body":{"$ref":"#/definitions/EarthquakeHypocenterUpdate.CancelBody"},"_originalId":{"type":"string"},"status":{"enum":["訓練","試験","通常"],"type":"string"},"editorialOffice":{"type":"string"},"publishingOffice":{"type":"array","items":{"type":"string"}},"pressDateTime":{"type":"string"},"reportDateTime":{"type":"string"},"targetDateTime":{"type":"string"},"infoKindVersion":{"type":"string"},"headline":{"type":["null","string"]}},"required":["_originalId","_schema","body","editorialOffice","eventId","headline","infoKind","infoKindVersion","infoType","pressDateTime","publishingOffice","reportDateTime","serialNo","status","targetDateTime","title","type"]},"EarthquakeHypocenterUpdate.CancelBody":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]}},"$schema":"http://json-schema.org/draft-07/schema#"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"anyOf":[{"$ref":"#/definitions/EarthquakeInformation.PublicVXSE51"},{"$ref":"#/definitions/EarthquakeInformation.PublicVXSE52"},{"$ref":"#/definitions/EarthquakeInformation.PublicVXSE53"},{"$ref":"#/definitions/EarthquakeInformation.PublicVZSE40"},{"$ref":"#/definitions/EarthquakeInformation.Cancel"}],"definitions":{"EarthquakeInformation.PublicVXSE51":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeInformation.Schema"},"type":{"type":"string","enum":["震度速報"]},"title":{"type":"string","enum":["震度速報"]},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"null"},"infoKind":{"type":"string","enum":["震度速報"]},"body":{"$ref":"#/definitions/EarthquakeInformation.PublicBodyVXSE51"},"_originalId":{"type":"string"},"status":{"enum":["訓練","試験","通常"],"type":"string"},"editorialOffice":{"type":"string"},"publishingOffice":{"type":"array","items":{"type":"string"}},"pressDateTime":{"type":"string"},"reportDateTime":{"type":"string"},"targetDateTime":{"type":"string"},"infoKindVersion":{"type":"string"},"headline":{"type":["null","string"]}},"required":["_originalId","_schema","body","editorialOffice","eventId","headline","infoKind","infoKindVersion","infoType","pressDateTime","publishingOffice","reportDateTime","serialNo","status","targetDateTime","title","type"]},"EarthquakeInformation.Schema":{"type":"object","properties":{"type":{"type":"string","enum":["earthquake-information"]},"version":{"type":"string","enum":["1.0.0"]}},"required":["type","version"]},"EarthquakeInformation.PublicBodyVXSE51":{"type":"object","properties":{"intensity":{"$ref":"#/definitions/EarthquakeInformation.IntensityVXSE51"},"text":{"type":"string"},"comments":{"$ref":"#/definitions/Omit<EarthquakeInformation.Comments,\"var\">"}},"required":["comments","intensity"]},"EarthquakeInformation.IntensityVXSE51":{"type":"object","properties":{"maxInt":{"$ref":"#/definitions/EarthquakeInformation.IntensityClass"},"prefectures":{"type":"array","items":{"$ref":"#/definitions/EarthquakeInformation.IntensityMaxInt"}},"regions":{"type":"array","items":{"$ref":"#/definitions/EarthquakeInformation.IntensityMaxInt"}}},"required":["maxInt","prefectures","regions"]},"EarthquakeInformation.IntensityClass":{"enum":["1","2","3","4","5+","5-","6+","6-","7"],"type":"string"},"EarthquakeInformation.IntensityMaxInt":{"type":"object","properties":{"maxInt":{"$ref":"#/definitions/EarthquakeInformation.IntensityClass"},"code":{"type":"string"},"name":{"type":"string"}},"required":["code","maxInt","name"]},"Omit<EarthquakeInformation.Comments,\"var\">":{"type":"object","properties":{"free":{"type":"string"},"forecast":{"type":"object","properties":{"text":{"type":"string"},"codes":{"type":"array","items":{"type":"string"}}},"required":["codes","text"]}}},"EarthquakeInformation.PublicVXSE52":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeInformation.Schema"},"type":{"type":"string","enum":["震源に関する情報"]},"title":{"type":"string","enum":["震源に関する情報"]},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"null"},"infoKind":{"type":"string","enum":["震源速報"]},"body":{"$ref":"#/definitions/EarthquakeInformation.PublicBodyVXSE52"},"_originalId":{"type":"string"},"status":{"enum":["訓練","試験","通常"],"type":"string"},"editorialOffice":{"type":"string"},"publishingOffice":{"type":"array","items":{"type":"string"}},"pressDateTime":{"type":"string"},"reportDateTime":{"type":"string"},"targetDateTime":{"type":"string"},"infoKindVersion":{"type":"string"},"headline":{"type":["null","string"]}},"required":["_originalId","_schema","body","editorialOffice","eventId","headline","infoKind","infoKindVersion","infoType","pressDateTime","publishingOffice","reportDateTime","serialNo","status","targetDateTime","title","type"]},"EarthquakeInformation.PublicBodyVXSE52":{"type":"object","properties":{"earthquake":{"$ref":"#/definitions/Earthquake"},"text":{"type":"string"},"comments":{"$ref":"#/definitions/Omit<EarthquakeInformation.Comments,\"var\">"}},"required":["comments","earthquake"]},"Earthquake":{"type":"object","properties":{"originTime":{"type":"string"},"arrivalTime":{"type":"string"},"hypocenter":{"$ref":"#/definitions/Hypocenter"},"magnitude":{"anyOf":[{"$ref":"#/definitions/MagnitudeNormal"},{"$ref":"#/definitions/MagnitudeUnknown"}]}},"required":["arrivalTime","hypocenter","magnitude","originTime"]},"Hypocenter":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"coordinate":{"anyOf":[{"$ref":"#/definitions/CoordinateUnknown"},{"$ref":"#/definitions/CoordinateNormal<\"日本測地系\"|undefined>"}]},"depth":{"anyOf":[{"$ref":"#/definitions/DepthNormal"},{"$ref":"#/definitions/DepthShallow"},{"$ref":"#/definitions/DepthDeep"},{"$ref":"#/definitions/DepthUnknown"}]},"detailed":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"]},"auxiliary":{"type":"object","properties":{"text":{"type":"string"},"code":{"type":"string"},"name":{"type":"string"},"direction":{"type":"string"},"distance":{"$ref":"#/definitions/Omit<UnitValueNotNull<never,\"km\",never>,\"type\"|\"condition\">"}},"required":["code","direction","distance","name","text"]},"source":{"enum":["PTWC","USGS","WCATWC"],"type":"string"}},"required":["code","coordinate","depth","name"]},"CoordinateUnknown":{"type":"object","properties":{"condition":{"type":"string","enum":["不明"]}},"required":["condition"]},"CoordinateNormal<\"日本測地系\"|undefined>":{"type":"object","properties":{"latitude":{"type":"object","properties":{"text":{"type":"string"},"value":{"type":"string"}},"required":["text","value"]},"longitude":{"type":"object","properties":{"text":{"type":"string"},"value":{"type":"string"}},"required":["text","value"]},"height":{"type":"object","properties":{"type":{"type":"string","enum":["高さ"]},"unit":{"type":"string","enum":["m"]},"value":{"type":"string"}},"required":["type","unit","value"]},"geodeticSystem":{"enum":["日本測地系"],"type":"string"}},"required":["latitude","longitude"]},"DepthNormal":{"type":"object","properties":{"value":{"type":"string"},"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]}},"required":["type","unit","value"]},"DepthShallow":{"type":"object","properties":{"value":{"type":"string","enum":["0"]},"condition":{"type":"string","enum":["ごく浅い"]},"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]}},"required":["condition","type","unit","value"]},"DepthDeep":{"type":"object","properties":{"value":{"type":"string","enum":["700"]},"condition":{"type":"string","enum":["700km以上"]},"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]}},"required":["condition","type","unit","value"]},"DepthUnknown":{"type":"object","properties":{"value":{"type":"null"},"condition":{"type":"string","enum":["不明"]},"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]}},"required":["condition","type","unit","value"]},"Omit<UnitValueNotNull<never,\"km\",never>,\"type\"|\"condition\">":{"type":"object","properties":{"unit":{"type":"string","enum":["km"]},"value":{"type":"string"}},"required":["unit","value"]},"MagnitudeNormal":{"type":"object","properties":{"value":{"type":"string"},"type":{"type":"string","enum":["マグニチュード"]},"unit":{"enum":["M","Mj"],"type":"string"}},"required":["type","unit","value"]},"MagnitudeUnknown":{"type":"object","properties":{"value":{"type":"null"},"condition":{"enum":["M不明","M8を超える巨大地震"],"type":"string"},"type":{"type":"string","enum":["マグニチュード"]},"unit":{"enum":["M","Mj"],"type":"string"}},"required":["condition","type","unit","value"]},"EarthquakeInformation.PublicVXSE53":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeInformation.Schema"},"type":{"type":"string","enum":["震源・震度に関する情報"]},"title":{"enum":["遠地地震に関する情報","震源・震度情報"],"type":"string"},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"string"},"infoKind":{"type":"string","enum":["地震情報"]},"body":{"$ref":"#/definitions/EarthquakeInformation.PublicBodyVXSE53"},"_originalId":{"type":"string"},"status":{"enum":["訓練","試験","通常"],"type":"string"},"editorialOffice":{"type":"string"},"publishingOffice":{"type":"array","items":{"type":"string"}},"pressDateTime":{"type":"string"},"reportDateTime":{"type":"string"},"targetDateTime":{"type":"string"},"infoKindVersion":{"type":"string"},"headline":{"type":["null","string"]}},"required":["_originalId","_schema","body","editorialOffice","eventId","headline","infoKind","infoKindVersion","infoType","pressDateTime","publishingOffice","reportDateTime","serialNo","status","targetDateTime","title","type"]},"EarthquakeInformation.PublicBodyVXSE53":{"type":"object","properties":{"earthquake":{"$ref":"#/definitions/Earthquake"},"intensity":{"$ref":"#/definitions/EarthquakeInformation.IntensityVXSE53"},"text":{"type":"string"},"comments":{"$ref":"#/definitions/EarthquakeInformation.Comments"}},"required":["comments","earthquake"]},"EarthquakeInformation.IntensityVXSE53":{"type":"object","properties":{"maxInt":{"$ref":"#/definitions/EarthquakeInformation.IntensityClass"},"prefectures":{"type":"array","items":{"$ref":"#/definitions/EarthquakeInformation.IntensityMaxIntOnRevise"}},"regions":{"type":"array","items":{"$ref":"#/definitions/EarthquakeInformation.IntensityMaxIntOnRevise"}},"cities":{"type":"array","items":{"$ref":"#/definitions/EarthquakeInformation.IntensityCity"}},"stations":{"type":"array","items":{"$ref":"#/definitions/EarthquakeInformation.IntensityStation"}}},"required":["cities","maxInt","prefectures","regions","stations"]},"EarthquakeInformation.IntensityMaxIntOnRevise":{"type":"object","properties":{"maxInt":{"enum":["1","2","3","4","5+","5-","6+","6-","7"],"type":"string"},"revise":{"enum":["上方修正","追加"],"type":"string"},"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"]},"EarthquakeInformation.IntensityCity":{"type":"object","properties":{"maxInt":{"enum":["1","2","3","4","5+","5-","6+","6-","7"],"type":"string"},"revise":{"enum":["上方修正","追加"],"type":"string"},"condition":{"enum":["震度5弱以上未入電"],"type":"string"},"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"]},"EarthquakeInformation.IntensityStation":{"type":"object","properties":{"int":{"enum":["!5-","1","2","3","4","5+","5-","6+","6-","7"],"type":"string"},"revise":{"enum":["上方修正","追加"],"type":"string"},"condition":{"enum":["震度5弱以上未入電"],"type":"string"},"code":{"type":"string"},"name":{"type":"string"}},"required":["code","int","name"]},"EarthquakeInformation.Comments":{"type":"object","properties":{"free":{"type":"string"},"forecast":{"type":"object","properties":{"text":{"type":"string"},"codes":{"type":"array","items":{"type":"string"}}},"required":["codes","text"]},"var":{"type":"object","properties":{"text":{"type":"string"},"codes":{"type":"array","items":{"type":"string"}}},"required":["codes","text"]}}},"EarthquakeInformation.PublicVZSE40":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeInformation.Schema"},"type":{"type":"string","enum":["地震・津波に関するお知らせ"]},"title":{"type":"string","enum":["地震・津波に関するお知らせ"]},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"null"},"infoKind":{"type":"string","enum":["地震・津波に関するお知らせ"]},"body":{"$ref":"#/definitions/EarthquakeInformation.PublicBodyVXZSE40"},"_originalId":{"type":"string"},"status":{"enum":["訓練","試験","通常"],"type":"string"},"editorialOffice":{"type":"string"},"publishingOffice":{"type":"array","items":{"type":"string"}},"pressDateTime":{"type":"string"},"reportDateTime":{"type":"string"},"targetDateTime":{"type":"string"},"infoKindVersion":{"type":"string"},"headline":{"type":["null","string"]}},"required":["_originalId","_schema","body","editorialOffice","eventId","headline","infoKind","infoKindVersion","infoType","pressDateTime","publishingOffice","reportDateTime","serialNo","status","targetDateTime","title","type"]},"EarthquakeInformation.PublicBodyVXZSE40":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]},"EarthquakeInformation.Cancel":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeInformation.Schema"},"type":{"enum":["地震・津波に関するお知らせ","震度速報","震源に関する情報","震源・震度に関する情報"],"type":"string"},"title":{"enum":["地震・津波に関するお知らせ","遠地地震に関する情報","震度速報","震源に関する情報","震源・震度情報"],"type":"string"},"infoType":{"type":"string","enum":["取消"]},"eventId":{"type":"string"},"infoKind":{"enum":["地震・津波に関するお知らせ","地震情報","震度速報","震源速報"],"type":"string"},"body":{"$ref":"#/definitions/EarthquakeInformation.CancelBody"},"_originalId":{"type":"string"},"status":{"enum":["訓練","試験","通常"],"type":"string"},"editorialOffice":{"type":"string"},"publishingOffice":{"type":"array","items":{"type":"string"}},"pressDateTime":{"type":"string"},"reportDateTime":{"type":"string"},"targetDateTime":{"type":"string"},"serialNo":{"type":["null","string"]},"infoKindVersion":{"type":"string"},"headline":{"type":["null","string"]}},"required":["_originalId","_schema","body","editorialOffice","eventId","headline","infoKind","infoKindVersion","infoType","pressDateTime","publishingOffice","reportDateTime","serialNo","status","targetDateTime","title","type"]},"EarthquakeInformation.CancelBody":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]}},"$schema":"http://json-schema.org/draft-07/schema#"}
|
|
1
|
+
{"anyOf":[{"$ref":"#/definitions/EarthquakeInformation.PublicVXSE51"},{"$ref":"#/definitions/EarthquakeInformation.PublicVXSE52"},{"$ref":"#/definitions/EarthquakeInformation.PublicVXSE53"},{"$ref":"#/definitions/EarthquakeInformation.PublicVZSE40"},{"$ref":"#/definitions/EarthquakeInformation.Cancel"}],"definitions":{"EarthquakeInformation.PublicVXSE51":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeInformation.Schema"},"type":{"type":"string","const":"震度速報"},"title":{"type":"string","const":"震度速報"},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"null"},"infoKind":{"type":"string","const":"震度速報"},"body":{"$ref":"#/definitions/EarthquakeInformation.PublicBodyVXSE51"},"_originalId":{"type":"string"},"status":{"enum":["訓練","試験","通常"],"type":"string"},"editorialOffice":{"type":"string"},"publishingOffice":{"type":"array","items":{"type":"string"}},"pressDateTime":{"type":"string"},"reportDateTime":{"type":"string"},"targetDateTime":{"type":"string"},"infoKindVersion":{"type":"string"},"headline":{"type":["null","string"]}},"required":["_originalId","_schema","body","editorialOffice","eventId","headline","infoKind","infoKindVersion","infoType","pressDateTime","publishingOffice","reportDateTime","serialNo","status","targetDateTime","title","type"]},"EarthquakeInformation.Schema":{"type":"object","properties":{"type":{"type":"string","const":"earthquake-information"},"version":{"type":"string","const":"1.0.0"}},"required":["type","version"]},"EarthquakeInformation.PublicBodyVXSE51":{"type":"object","properties":{"intensity":{"$ref":"#/definitions/EarthquakeInformation.IntensityVXSE51"},"text":{"type":"string"},"comments":{"$ref":"#/definitions/Omit<EarthquakeInformation.Comments,\"var\">"}},"required":["comments","intensity"]},"EarthquakeInformation.IntensityVXSE51":{"type":"object","properties":{"maxInt":{"$ref":"#/definitions/EarthquakeInformation.IntensityClass"},"prefectures":{"type":"array","items":{"$ref":"#/definitions/EarthquakeInformation.IntensityMaxInt"}},"regions":{"type":"array","items":{"$ref":"#/definitions/EarthquakeInformation.IntensityMaxInt"}}},"required":["maxInt","prefectures","regions"]},"EarthquakeInformation.IntensityClass":{"enum":["1","2","3","4","5+","5-","6+","6-","7"],"type":"string"},"EarthquakeInformation.IntensityMaxInt":{"type":"object","properties":{"maxInt":{"$ref":"#/definitions/EarthquakeInformation.IntensityClass"},"code":{"type":"string"},"name":{"type":"string"}},"required":["code","maxInt","name"]},"Omit<EarthquakeInformation.Comments,\"var\">":{"type":"object","properties":{"free":{"type":"string"},"forecast":{"type":"object","properties":{"text":{"type":"string"},"codes":{"type":"array","items":{"type":"string"}}},"required":["codes","text"]}}},"EarthquakeInformation.PublicVXSE52":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeInformation.Schema"},"type":{"type":"string","const":"震源に関する情報"},"title":{"type":"string","const":"震源に関する情報"},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"null"},"infoKind":{"type":"string","const":"震源速報"},"body":{"$ref":"#/definitions/EarthquakeInformation.PublicBodyVXSE52"},"_originalId":{"type":"string"},"status":{"enum":["訓練","試験","通常"],"type":"string"},"editorialOffice":{"type":"string"},"publishingOffice":{"type":"array","items":{"type":"string"}},"pressDateTime":{"type":"string"},"reportDateTime":{"type":"string"},"targetDateTime":{"type":"string"},"infoKindVersion":{"type":"string"},"headline":{"type":["null","string"]}},"required":["_originalId","_schema","body","editorialOffice","eventId","headline","infoKind","infoKindVersion","infoType","pressDateTime","publishingOffice","reportDateTime","serialNo","status","targetDateTime","title","type"]},"EarthquakeInformation.PublicBodyVXSE52":{"type":"object","properties":{"earthquake":{"$ref":"#/definitions/Earthquake"},"text":{"type":"string"},"comments":{"$ref":"#/definitions/Omit<EarthquakeInformation.Comments,\"var\">"}},"required":["comments","earthquake"]},"Earthquake":{"type":"object","properties":{"originTime":{"type":"string"},"arrivalTime":{"type":"string"},"hypocenter":{"$ref":"#/definitions/Hypocenter"},"magnitude":{"$ref":"#/definitions/Magnitude"}},"required":["arrivalTime","hypocenter","magnitude","originTime"]},"Hypocenter":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"coordinate":{"$ref":"#/definitions/Coordinate<\"日本測地系\"|undefined>"},"depth":{"$ref":"#/definitions/Depth"},"detailed":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"]},"auxiliary":{"type":"object","properties":{"text":{"type":"string"},"code":{"type":"string"},"name":{"type":"string"},"direction":{"type":"string"},"distance":{"$ref":"#/definitions/Omit<UnitValueNotNull<never,\"km\">,\"type\"|\"condition\">"}},"required":["code","direction","distance","name","text"]},"source":{"enum":["PTWC","USGS","WCATWC"],"type":"string"}},"required":["code","coordinate","depth","name"]},"Coordinate<\"日本測地系\"|undefined>":{"anyOf":[{"$ref":"#/definitions/CoordinateUnknown"},{"$ref":"#/definitions/CoordinateNormal<\"日本測地系\"|undefined>"}]},"CoordinateUnknown":{"type":"object","properties":{"condition":{"type":"string","const":"不明"}},"required":["condition"]},"CoordinateNormal<\"日本測地系\"|undefined>":{"type":"object","properties":{"latitude":{"type":"object","properties":{"text":{"type":"string"},"value":{"type":"string"}},"required":["text","value"]},"longitude":{"type":"object","properties":{"text":{"type":"string"},"value":{"type":"string"}},"required":["text","value"]},"height":{"type":"object","properties":{"type":{"type":"string","const":"高さ"},"unit":{"type":"string","const":"m"},"value":{"type":"string"}},"required":["type","unit","value"]},"geodeticSystem":{"const":"日本測地系","type":"string"}},"required":["latitude","longitude"]},"Depth":{"anyOf":[{"$ref":"#/definitions/DepthNormal"},{"$ref":"#/definitions/DepthShallow"},{"$ref":"#/definitions/DepthDeep"},{"$ref":"#/definitions/DepthUnknown"}]},"DepthNormal":{"type":"object","properties":{"value":{"type":"string"},"type":{"type":"string","const":"深さ"},"unit":{"type":"string","const":"km"}},"required":["type","unit","value"]},"DepthShallow":{"type":"object","properties":{"value":{"type":"string","const":"0"},"condition":{"type":"string","const":"ごく浅い"},"type":{"type":"string","const":"深さ"},"unit":{"type":"string","const":"km"}},"required":["condition","type","unit","value"]},"DepthDeep":{"type":"object","properties":{"value":{"type":"string","const":"700"},"condition":{"type":"string","const":"700km以上"},"type":{"type":"string","const":"深さ"},"unit":{"type":"string","const":"km"}},"required":["condition","type","unit","value"]},"DepthUnknown":{"type":"object","properties":{"value":{"type":"null"},"condition":{"type":"string","const":"不明"},"type":{"type":"string","const":"深さ"},"unit":{"type":"string","const":"km"}},"required":["condition","type","unit","value"]},"Omit<UnitValueNotNull<never,\"km\">,\"type\"|\"condition\">":{"type":"object","properties":{"value":{"type":"string"},"unit":{"type":"string","const":"km"}},"required":["unit","value"]},"Magnitude":{"anyOf":[{"$ref":"#/definitions/MagnitudeNormal"},{"$ref":"#/definitions/MagnitudeUnknown"}]},"MagnitudeNormal":{"type":"object","properties":{"value":{"type":"string"},"type":{"type":"string","const":"マグニチュード"},"unit":{"enum":["M","Mj"],"type":"string"}},"required":["type","unit","value"]},"MagnitudeUnknown":{"type":"object","properties":{"value":{"type":"null"},"condition":{"enum":["M不明","M8を超える巨大地震"],"type":"string"},"type":{"type":"string","const":"マグニチュード"},"unit":{"enum":["M","Mj"],"type":"string"}},"required":["condition","type","unit","value"]},"EarthquakeInformation.PublicVXSE53":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeInformation.Schema"},"type":{"type":"string","const":"震源・震度に関する情報"},"title":{"enum":["遠地地震に関する情報","震源・震度情報"],"type":"string"},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"string"},"infoKind":{"type":"string","const":"地震情報"},"body":{"$ref":"#/definitions/EarthquakeInformation.PublicBodyVXSE53"},"_originalId":{"type":"string"},"status":{"enum":["訓練","試験","通常"],"type":"string"},"editorialOffice":{"type":"string"},"publishingOffice":{"type":"array","items":{"type":"string"}},"pressDateTime":{"type":"string"},"reportDateTime":{"type":"string"},"targetDateTime":{"type":"string"},"infoKindVersion":{"type":"string"},"headline":{"type":["null","string"]}},"required":["_originalId","_schema","body","editorialOffice","eventId","headline","infoKind","infoKindVersion","infoType","pressDateTime","publishingOffice","reportDateTime","serialNo","status","targetDateTime","title","type"]},"EarthquakeInformation.PublicBodyVXSE53":{"type":"object","properties":{"earthquake":{"$ref":"#/definitions/Earthquake"},"intensity":{"$ref":"#/definitions/EarthquakeInformation.IntensityVXSE53"},"text":{"type":"string"},"comments":{"$ref":"#/definitions/EarthquakeInformation.Comments"}},"required":["comments","earthquake"]},"EarthquakeInformation.IntensityVXSE53":{"type":"object","properties":{"maxInt":{"$ref":"#/definitions/EarthquakeInformation.IntensityClass"},"prefectures":{"type":"array","items":{"$ref":"#/definitions/EarthquakeInformation.IntensityMaxIntOnRevise"}},"regions":{"type":"array","items":{"$ref":"#/definitions/EarthquakeInformation.IntensityMaxIntOnRevise"}},"cities":{"type":"array","items":{"$ref":"#/definitions/EarthquakeInformation.IntensityCity"}},"stations":{"type":"array","items":{"$ref":"#/definitions/EarthquakeInformation.IntensityStation"}}},"required":["cities","maxInt","prefectures","regions","stations"]},"EarthquakeInformation.IntensityMaxIntOnRevise":{"type":"object","properties":{"maxInt":{"enum":["1","2","3","4","5+","5-","6+","6-","7"],"type":"string"},"revise":{"enum":["上方修正","追加"],"type":"string"},"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"]},"EarthquakeInformation.IntensityCity":{"type":"object","properties":{"maxInt":{"enum":["1","2","3","4","5+","5-","6+","6-","7"],"type":"string"},"revise":{"enum":["上方修正","追加"],"type":"string"},"condition":{"const":"震度5弱以上未入電","type":"string"},"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"]},"EarthquakeInformation.IntensityStation":{"type":"object","properties":{"int":{"enum":["!5-","1","2","3","4","5+","5-","6+","6-","7"],"type":"string"},"revise":{"enum":["上方修正","追加"],"type":"string"},"condition":{"const":"震度5弱以上未入電","type":"string"},"code":{"type":"string"},"name":{"type":"string"}},"required":["code","int","name"]},"EarthquakeInformation.Comments":{"type":"object","properties":{"free":{"type":"string"},"forecast":{"type":"object","properties":{"text":{"type":"string"},"codes":{"type":"array","items":{"type":"string"}}},"required":["codes","text"]},"var":{"type":"object","properties":{"text":{"type":"string"},"codes":{"type":"array","items":{"type":"string"}}},"required":["codes","text"]}}},"EarthquakeInformation.PublicVZSE40":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeInformation.Schema"},"type":{"type":"string","const":"地震・津波に関するお知らせ"},"title":{"type":"string","const":"地震・津波に関するお知らせ"},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"null"},"infoKind":{"type":"string","const":"地震・津波に関するお知らせ"},"body":{"$ref":"#/definitions/EarthquakeInformation.PublicBodyVZSE40"},"_originalId":{"type":"string"},"status":{"enum":["訓練","試験","通常"],"type":"string"},"editorialOffice":{"type":"string"},"publishingOffice":{"type":"array","items":{"type":"string"}},"pressDateTime":{"type":"string"},"reportDateTime":{"type":"string"},"targetDateTime":{"type":"string"},"infoKindVersion":{"type":"string"},"headline":{"type":["null","string"]}},"required":["_originalId","_schema","body","editorialOffice","eventId","headline","infoKind","infoKindVersion","infoType","pressDateTime","publishingOffice","reportDateTime","serialNo","status","targetDateTime","title","type"]},"EarthquakeInformation.PublicBodyVZSE40":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]},"EarthquakeInformation.Cancel":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeInformation.Schema"},"type":{"enum":["地震・津波に関するお知らせ","震度速報","震源に関する情報","震源・震度に関する情報"],"type":"string"},"title":{"enum":["地震・津波に関するお知らせ","遠地地震に関する情報","震度速報","震源に関する情報","震源・震度情報"],"type":"string"},"infoType":{"type":"string","const":"取消"},"eventId":{"type":"string"},"infoKind":{"enum":["地震・津波に関するお知らせ","地震情報","震度速報","震源速報"],"type":"string"},"body":{"$ref":"#/definitions/EarthquakeInformation.CancelBody"},"_originalId":{"type":"string"},"status":{"enum":["訓練","試験","通常"],"type":"string"},"editorialOffice":{"type":"string"},"publishingOffice":{"type":"array","items":{"type":"string"}},"pressDateTime":{"type":"string"},"reportDateTime":{"type":"string"},"targetDateTime":{"type":"string"},"serialNo":{"type":["null","string"]},"infoKindVersion":{"type":"string"},"headline":{"type":["null","string"]}},"required":["_originalId","_schema","body","editorialOffice","eventId","headline","infoKind","infoKindVersion","infoType","pressDateTime","publishingOffice","reportDateTime","serialNo","status","targetDateTime","title","type"]},"EarthquakeInformation.CancelBody":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]}},"$schema":"http://json-schema.org/draft-07/schema#"}
|