@dmdata/telegram-json-types 1.0.8 → 1.0.9-jschema.3
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/LICENSE +21 -0
- package/README.md +60 -0
- package/dist/build.d.ts +1 -0
- package/dist/build.js +68 -0
- package/dist/config.d.ts +3 -0
- package/dist/config.js +7 -0
- package/dist/jschema/earthquake-counts_1.0.0.json +1 -0
- package/dist/jschema/earthquake-explanation_1.0.0.json +1 -0
- package/dist/jschema/earthquake-hypocenter-update_1.0.0.json +1 -0
- package/dist/jschema/earthquake-information_1.0.0.json +1 -0
- package/dist/jschema/earthquake-information_1.1.0.json +1 -0
- package/dist/jschema/earthquake-nankai_1.0.0.json +1 -0
- package/dist/jschema/eew-information_1.0.0.json +1 -0
- package/dist/jschema/tsunami-information_1.0.0.json +1 -0
- package/dist/jschema/volcano-information_1.0.0.json +1 -0
- package/dist/jschema/weather-typhoon_1.0.0.json +1 -0
- package/dist/jschema-load.d.ts +1 -0
- package/dist/jschema-load.js +44 -0
- package/index.d.ts +2 -1
- package/package.json +21 -11
- package/tsconfig.json +27 -15
- package/types/{schema/component → component}/coordinate.d.ts +15 -15
- package/types/{schema/component → component}/earthquake.d.ts +56 -56
- package/types/{schema/component → component}/unit-value.d.ts +13 -13
- package/types/index.d.ts +21 -3
- package/types/schema/earthquake-counts/1.0.0.d.ts +69 -0
- package/types/schema/earthquake-counts/index.d.ts +7 -0
- package/types/schema/earthquake-explanation/1.0.0.d.ts +57 -0
- package/types/schema/earthquake-explanation/index.d.ts +7 -0
- package/types/schema/earthquake-hypocenter-update/1.0.0.d.ts +53 -0
- package/types/schema/earthquake-hypocenter-update/index.d.ts +7 -0
- package/types/schema/earthquake-information/1.0.0.d.ts +165 -0
- package/types/schema/{earthquake-information.d.ts → earthquake-information/1.1.0.d.ts} +212 -177
- package/types/schema/earthquake-information/index.d.ts +9 -0
- package/types/schema/earthquake-nankai/1.0.0.d.ts +87 -0
- package/types/schema/earthquake-nankai/index.d.ts +7 -0
- package/types/schema/eew-information/1.0.0.d.ts +176 -0
- package/types/schema/eew-information/index.d.ts +7 -0
- package/types/schema/{tsunami-information.d.ts → tsunami-information/1.0.0.d.ts} +243 -229
- package/types/schema/tsunami-information/index.d.ts +7 -0
- package/types/schema/volcano-information/1.0.0.d.ts +449 -0
- package/types/schema/volcano-information/index.d.ts +7 -0
- package/types/schema/{weather-typhoon.d.ts → weather-typhoon/1.0.0.d.ts} +124 -117
- package/types/schema/weather-typhoon/index.d.ts +7 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Project DM-D.S.S (dmdata.jp)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# @dmdata/telegram-json-type
|
|
2
|
+
|
|
3
|
+
## 概要
|
|
4
|
+
DMDATA.JP が提供する [JSON Schema](https://dmdata.jp/doc/reference/conversion/json/) の、TypeScript型定義(作成中)を公開しています。
|
|
5
|
+
|
|
6
|
+
## 使い方
|
|
7
|
+
|
|
8
|
+
### インストール
|
|
9
|
+
`$ npm i -D @dmdata/telegram-json-type`
|
|
10
|
+
|
|
11
|
+
### 型の使用
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { EarthquakeInformation } from '@dmdata/telegram-json-types';
|
|
15
|
+
|
|
16
|
+
const data = await fetch('https://data.api.dmdata.jp/v1/...')
|
|
17
|
+
.then(res => res.json()) as Promise<EarthquakeInformation.Latest.Main>
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## JSON Schema による整合性チェック
|
|
22
|
+
|
|
23
|
+
Telegram JSON が、仕様通り整合するかチェックすることができます。
|
|
24
|
+
|
|
25
|
+
`$ npm i @dmdata/telegram-json-type ajv`
|
|
26
|
+
|
|
27
|
+
```typescript
|
|
28
|
+
import { getJSchema } from '@dmdata/telegram-json-types';
|
|
29
|
+
|
|
30
|
+
// 実際の電文データ
|
|
31
|
+
const telegramData = {
|
|
32
|
+
_schema: {
|
|
33
|
+
type: 'earthquake-information',
|
|
34
|
+
version: '1.1.0'
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
async function check() {
|
|
39
|
+
// Schema 名から JSON Schema 定義を読み込む
|
|
40
|
+
const jschema = await getJSchema(telegramData._schema.type, telegramData._schema.version);
|
|
41
|
+
|
|
42
|
+
const validate = ajv.complite(jschema);
|
|
43
|
+
|
|
44
|
+
console.log(validate(telegramData)); // false
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
check();
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## 使える型定義
|
|
51
|
+
|
|
52
|
+
* [EarthquakeInformation](https://dmdata.jp/doc/reference/conversion/json/schema/earthquake-information)
|
|
53
|
+
* [EarthquakeExplanation](https://dmdata.jp/doc/reference/conversion/json/schema/earthquake-explantion)
|
|
54
|
+
* [EarthquakeCounts](https://dmdata.jp/doc/reference/conversion/json/schema/earthquake-counts)
|
|
55
|
+
* [EarthquakeHypocenterUpdate](https://dmdata.jp/doc/reference/conversion/json/schema/earthquake-hypocenter-update)
|
|
56
|
+
* [EarthquakeNankai](https://dmdata.jp/doc/reference/conversion/json/schema/earthquake-nankai)
|
|
57
|
+
* [EewInformation](https://dmdata.jp/doc/reference/conversion/json/schema/eew-information)
|
|
58
|
+
* [TsunamiInformation](https://dmdata.jp/doc/reference/conversion/json/schema/tsunami-information)
|
|
59
|
+
* [VolcanoInformation](https://dmdata.jp/doc/reference/conversion/json/schema/volcano-information)
|
|
60
|
+
* [WeatherTyphoon](https://dmdata.jp/doc/reference/conversion/json/schema/weather-typhoon)
|
package/dist/build.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/build.js
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
const path_1 = require("path");
|
|
23
|
+
const promises_1 = require("fs/promises");
|
|
24
|
+
const TJS = __importStar(require("typescript-json-schema"));
|
|
25
|
+
const config_1 = require("./config");
|
|
26
|
+
const settings = {
|
|
27
|
+
required: true,
|
|
28
|
+
};
|
|
29
|
+
const compilerOptions = {
|
|
30
|
+
strictNullChecks: true,
|
|
31
|
+
paths: {
|
|
32
|
+
'@t/*': [
|
|
33
|
+
config_1.baseDir + '/*'
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
(0, promises_1.readdir)(config_1.schemaDir, { withFileTypes: true })
|
|
38
|
+
.then(dirs => dirs.filter(dir => dir.isDirectory())
|
|
39
|
+
.map(async (dir) => [dir.name, await (0, promises_1.readdir)((0, path_1.resolve)(config_1.schemaDir, dir.name))]))
|
|
40
|
+
.then(dirs => Promise.all(dirs))
|
|
41
|
+
.then(dirs => dirs
|
|
42
|
+
.flatMap(([dir, files]) => files.map(file => (0, path_1.resolve)(config_1.schemaDir, dir, file)))
|
|
43
|
+
.filter(file => /(\d+\.\d+\.\d+)(\.d)?\.ts$/.test(file)))
|
|
44
|
+
.then(files => programTypescript(files));
|
|
45
|
+
async function programTypescript(files) {
|
|
46
|
+
const tsTypeFiles = files.filter(file => /\.ts$/.test(file));
|
|
47
|
+
const objectMaps = tsTypeFiles.map(file => tsTypeFileName2TypeSymbolName(file));
|
|
48
|
+
await (0, promises_1.rm)(config_1.distDir, { recursive: true, force: true });
|
|
49
|
+
await (0, promises_1.mkdir)(config_1.distDir, { recursive: true });
|
|
50
|
+
for (let i = 0; i < objectMaps.length; i++) {
|
|
51
|
+
const { schemaName, schemaVersion, typeName, file } = objectMaps[i];
|
|
52
|
+
const program = TJS.getProgramFromFiles([file], compilerOptions, config_1.baseDir);
|
|
53
|
+
const schema = TJS.generateSchema(program, typeName, settings);
|
|
54
|
+
console.log(`Build ok: ${schemaName}:${schemaVersion} => ${typeName}`);
|
|
55
|
+
await (0, promises_1.writeFile)((0, path_1.resolve)(config_1.distDir, `${schemaName}_${schemaVersion}.json`), JSON.stringify(schema));
|
|
56
|
+
}
|
|
57
|
+
console.log('Build complete');
|
|
58
|
+
}
|
|
59
|
+
function tsTypeFileName2TypeSymbolName(file) {
|
|
60
|
+
const [, schemaName = null, schemaVersion = null] = file.match(/([\w-]+?)[\\/](\d+\.\d+\.\d+)(\.d)?\.ts$/) ?? [];
|
|
61
|
+
const nameScope = schemaName?.replace(/-(\w)|(^\w)/g, (match, p1 = '', p2 = '') => `${p1}${p2}`.toUpperCase());
|
|
62
|
+
return {
|
|
63
|
+
schemaName,
|
|
64
|
+
schemaVersion,
|
|
65
|
+
typeName: nameScope + '.Main',
|
|
66
|
+
file
|
|
67
|
+
};
|
|
68
|
+
}
|
package/dist/config.d.ts
ADDED
package/dist/config.js
ADDED
|
@@ -0,0 +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/');
|
|
@@ -0,0 +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","enum":["地震回数に関する情報"]},"title":{"type":"string","enum":["地震回数に関する情報"]},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"string"},"infoKind":{"type":"string","enum":["地震回数情報"]},"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","enum":["earthquake-counts"]},"version":{"type":"string","enum":["1.0.0"]}},"required":["type","version"]},"EarthquakeCounts.PublicBody":{"type":"object","properties":{"earthquakeCounts":{"$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","enum":["地震回数に関する情報"]},"title":{"type":"string","enum":["地震回数に関する情報"]},"infoType":{"type":"string","enum":["取消"]},"eventId":{"type":"string"},"serialNo":{"type":"string"},"infoKind":{"type":"string","enum":["地震回数情報"]},"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#"}
|
|
@@ -0,0 +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","enum":["地震の活動状況等に関する情報"]},"title":{"type":"string","enum":["地震の活動状況等に関する情報"]},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"null"},"infoKind":{"type":"string","enum":["地震の活動状況等に関する情報"]},"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","enum":["earthquake-explanation"]},"version":{"type":"string","enum":["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","enum":["地震の活動状況等に関する情報"]},"title":{"type":"string","enum":["地震の活動状況等に関する情報"]},"infoType":{"type":"string","enum":["取消"]},"eventId":{"type":"string"},"serialNo":{"type":"null"},"infoKind":{"type":"string","enum":["地震の活動状況等に関する情報"]},"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#"}
|
|
@@ -0,0 +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","enum":["顕著な地震の震源要素更新のお知らせ"]},"title":{"type":"string","enum":["顕著な地震の震源要素更新のお知らせ"]},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"null"},"infoKind":{"type":"string","enum":["震源要素更新のお知らせ"]},"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","enum":["earthquake-hypocenter-update"]},"version":{"type":"string","enum":["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","text"]},"Earthquake":{"type":"object","properties":{"originTime":{"type":"string"},"arrivalTime":{"type":"string"},"hypocenter":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"coordinate":{"anyOf":[{"type":"object","properties":{"condition":{"type":"string","enum":["不明"]}},"required":["condition"]},{"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":["null","string"]}},"required":["type","unit","value"]},"geodeticSystem":{"enum":["日本測地系"],"type":"string"}},"required":["latitude","longitude"]}]},"depth":{"anyOf":[{"allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]}},"required":["type","unit"]},{"type":"object","properties":{"value":{"type":"null"},"condition":{"type":"string","enum":["不明"]}},"required":["condition","value"]}]},{"allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]}},"required":["type","unit"]},{"type":"object","properties":{"value":{"type":"string","enum":["0"]},"condition":{"type":"string","enum":["ごく浅い"]}},"required":["condition","value"]}]},{"allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]}},"required":["type","unit"]},{"type":"object","properties":{"value":{"type":"string","enum":["700"]},"condition":{"type":"string","enum":["700km以上"]}},"required":["condition","value"]}]},{"allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]}},"required":["type","unit"]},{"type":"object","properties":{"value":{"type":"string"}},"required":["value"]}]}]},"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"]},"magnitude":{"anyOf":[{"allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["マグニチュード"]},"unit":{"enum":["M","Mj"],"type":"string"}},"required":["type","unit"]},{"type":"object","properties":{"value":{"type":"null"},"condition":{"enum":["M不明","M8を超える巨大地震"],"type":"string"}},"required":["condition","value"]}]},{"allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["マグニチュード"]},"unit":{"enum":["M","Mj"],"type":"string"}},"required":["type","unit"]},{"type":"object","properties":{"value":{"type":"string"}},"required":["value"]}]}]}},"required":["arrivalTime","hypocenter","magnitude","originTime"]},"Omit<UnitValueNotNull<never,\"km\",never>,\"type\"|\"condition\">":{"type":"object","properties":{"unit":{"type":"string","enum":["km"]},"value":{"type":"string"}},"required":["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","enum":["顕著な地震の震源要素更新のお知らせ"]},"title":{"type":"string","enum":["顕著な地震の震源要素更新のお知らせ"]},"infoType":{"type":"string","enum":["取消"]},"eventId":{"type":"string"},"serialNo":{"type":"null"},"infoKind":{"type":"string","enum":["震源要素更新のお知らせ"]},"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#"}
|
|
@@ -0,0 +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.1.0"]}},"required":["type","version"]},"EarthquakeInformation.PublicBodyVXSE51":{"type":"object","properties":{"intensity":{"type":"object","properties":{"maxInt":{"$ref":"#/definitions/EarthquakeInformation.IntensityClass"},"prefectures":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"maxInt":{"$ref":"#/definitions/EarthquakeInformation.IntensityClass"}},"required":["code","maxInt","name"]}},"regions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"maxInt":{"$ref":"#/definitions/EarthquakeInformation.IntensityClass"}},"required":["code","maxInt","name"]}}},"required":["maxInt","prefectures","regions"]},"text":{"type":"string"},"comments":{"$ref":"#/definitions/Omit<EarthquakeInformation.Comment,\"var\">"}},"required":["comments","intensity"]},"EarthquakeInformation.IntensityClass":{"enum":["1","2","3","4","5+","5-","6+","6-","7"],"type":"string"},"Omit<EarthquakeInformation.Comment,\"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.Comment,\"var\">"}},"required":["comments","earthquake"]},"Earthquake":{"type":"object","properties":{"originTime":{"type":"string"},"arrivalTime":{"type":"string"},"hypocenter":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"coordinate":{"anyOf":[{"type":"object","properties":{"condition":{"type":"string","enum":["不明"]}},"required":["condition"]},{"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":["null","string"]}},"required":["type","unit","value"]},"geodeticSystem":{"enum":["日本測地系"],"type":"string"}},"required":["latitude","longitude"]}]},"depth":{"anyOf":[{"allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]}},"required":["type","unit"]},{"type":"object","properties":{"value":{"type":"null"},"condition":{"type":"string","enum":["不明"]}},"required":["condition","value"]}]},{"allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]}},"required":["type","unit"]},{"type":"object","properties":{"value":{"type":"string","enum":["0"]},"condition":{"type":"string","enum":["ごく浅い"]}},"required":["condition","value"]}]},{"allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]}},"required":["type","unit"]},{"type":"object","properties":{"value":{"type":"string","enum":["700"]},"condition":{"type":"string","enum":["700km以上"]}},"required":["condition","value"]}]},{"allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]}},"required":["type","unit"]},{"type":"object","properties":{"value":{"type":"string"}},"required":["value"]}]}]},"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"]},"magnitude":{"anyOf":[{"allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["マグニチュード"]},"unit":{"enum":["M","Mj"],"type":"string"}},"required":["type","unit"]},{"type":"object","properties":{"value":{"type":"null"},"condition":{"enum":["M不明","M8を超える巨大地震"],"type":"string"}},"required":["condition","value"]}]},{"allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["マグニチュード"]},"unit":{"enum":["M","Mj"],"type":"string"}},"required":["type","unit"]},{"type":"object","properties":{"value":{"type":"string"}},"required":["value"]}]}]}},"required":["arrivalTime","hypocenter","magnitude","originTime"]},"Omit<UnitValueNotNull<never,\"km\",never>,\"type\"|\"condition\">":{"type":"object","properties":{"unit":{"type":"string","enum":["km"]},"value":{"type":"string"}},"required":["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":{"type":"object","properties":{"maxInt":{"$ref":"#/definitions/EarthquakeInformation.IntensityClass"},"prefectures":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"maxInt":{"enum":["1","2","3","4","5+","5-","6+","6-","7"],"type":"string"},"revise":{"enum":["上方修正","追加"],"type":"string"}},"required":["code","name"]}},"regions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"maxInt":{"enum":["1","2","3","4","5+","5-","6+","6-","7"],"type":"string"},"revise":{"enum":["上方修正","追加"],"type":"string"}},"required":["code","name"]}},"cities":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"maxInt":{"enum":["1","2","3","4","5+","5-","6+","6-","7"],"type":"string"},"revise":{"enum":["上方修正","追加"],"type":"string"},"condition":{"enum":["震度5弱以上未入電"],"type":"string"}},"required":["code","name"]}},"stations":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"int":{"enum":["!5-","1","2","3","4","5+","5-","6+","6-","7"],"type":"string"},"revise":{"enum":["上方修正","追加"],"type":"string"},"condition":{"enum":["震度5弱以上未入電"],"type":"string"}},"required":["code","int","name"]}}},"required":["cities","maxInt","prefectures","regions","stations"]},"text":{"type":"string"},"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"]}}}},"required":["comments","earthquake"]},"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#"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"anyOf":[{"$ref":"#/definitions/EarthquakeInformation.PublicVXSE51"},{"$ref":"#/definitions/EarthquakeInformation.PublicVXSE52"},{"$ref":"#/definitions/EarthquakeInformation.PublicVXSE53"},{"$ref":"#/definitions/EarthquakeInformation.PublicVXSE62"},{"$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.1.0"]}},"required":["type","version"]},"EarthquakeInformation.PublicBodyVXSE51":{"type":"object","properties":{"intensity":{"type":"object","properties":{"maxInt":{"$ref":"#/definitions/EarthquakeInformation.IntensityClass"},"prefectures":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"maxInt":{"$ref":"#/definitions/EarthquakeInformation.IntensityClass"}},"required":["code","maxInt","name"]}},"regions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"maxInt":{"$ref":"#/definitions/EarthquakeInformation.IntensityClass"}},"required":["code","maxInt","name"]}}},"required":["maxInt","prefectures","regions"]},"text":{"type":"string"},"comments":{"$ref":"#/definitions/Omit<EarthquakeInformation.Comment,\"var\">"}},"required":["comments","intensity"]},"EarthquakeInformation.IntensityClass":{"enum":["1","2","3","4","5+","5-","6+","6-","7"],"type":"string"},"Omit<EarthquakeInformation.Comment,\"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.Comment,\"var\">"}},"required":["comments","earthquake"]},"Earthquake":{"type":"object","properties":{"originTime":{"type":"string"},"arrivalTime":{"type":"string"},"hypocenter":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"coordinate":{"anyOf":[{"type":"object","properties":{"condition":{"type":"string","enum":["不明"]}},"required":["condition"]},{"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":["null","string"]}},"required":["type","unit","value"]},"geodeticSystem":{"enum":["日本測地系"],"type":"string"}},"required":["latitude","longitude"]}]},"depth":{"anyOf":[{"allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]}},"required":["type","unit"]},{"type":"object","properties":{"value":{"type":"null"},"condition":{"type":"string","enum":["不明"]}},"required":["condition","value"]}]},{"allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]}},"required":["type","unit"]},{"type":"object","properties":{"value":{"type":"string","enum":["0"]},"condition":{"type":"string","enum":["ごく浅い"]}},"required":["condition","value"]}]},{"allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]}},"required":["type","unit"]},{"type":"object","properties":{"value":{"type":"string","enum":["700"]},"condition":{"type":"string","enum":["700km以上"]}},"required":["condition","value"]}]},{"allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]}},"required":["type","unit"]},{"type":"object","properties":{"value":{"type":"string"}},"required":["value"]}]}]},"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"]},"magnitude":{"anyOf":[{"allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["マグニチュード"]},"unit":{"enum":["M","Mj"],"type":"string"}},"required":["type","unit"]},{"type":"object","properties":{"value":{"type":"null"},"condition":{"enum":["M不明","M8を超える巨大地震"],"type":"string"}},"required":["condition","value"]}]},{"allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["マグニチュード"]},"unit":{"enum":["M","Mj"],"type":"string"}},"required":["type","unit"]},{"type":"object","properties":{"value":{"type":"string"}},"required":["value"]}]}]}},"required":["arrivalTime","hypocenter","magnitude","originTime"]},"Omit<UnitValueNotNull<never,\"km\",never>,\"type\"|\"condition\">":{"type":"object","properties":{"unit":{"type":"string","enum":["km"]},"value":{"type":"string"}},"required":["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":{"type":"object","properties":{"maxInt":{"$ref":"#/definitions/EarthquakeInformation.IntensityClass"},"prefectures":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"maxInt":{"enum":["1","2","3","4","5+","5-","6+","6-","7"],"type":"string"},"revise":{"enum":["上方修正","追加"],"type":"string"}},"required":["code","name"]}},"regions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"maxInt":{"enum":["1","2","3","4","5+","5-","6+","6-","7"],"type":"string"},"revise":{"enum":["上方修正","追加"],"type":"string"}},"required":["code","name"]}},"cities":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"maxInt":{"enum":["1","2","3","4","5+","5-","6+","6-","7"],"type":"string"},"revise":{"enum":["上方修正","追加"],"type":"string"},"condition":{"enum":["震度5弱以上未入電"],"type":"string"}},"required":["code","name"]}},"stations":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"int":{"enum":["!5-","1","2","3","4","5+","5-","6+","6-","7"],"type":"string"},"revise":{"enum":["上方修正","追加"],"type":"string"},"condition":{"enum":["震度5弱以上未入電"],"type":"string"}},"required":["code","int","name"]}}},"required":["cities","maxInt","prefectures","regions","stations"]},"text":{"type":"string"},"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"]}}}},"required":["comments","earthquake"]},"EarthquakeInformation.PublicVXSE62":{"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":"string"},"infoKind":{"type":"string","enum":["長周期地震動に関する観測情報"]},"body":{"$ref":"#/definitions/EarthquakeInformation.PublicBodyVXSE62"},"_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.PublicBodyVXSE62":{"type":"object","properties":{"earthquake":{"$ref":"#/definitions/Earthquake"},"intensity":{"type":"object","properties":{"maxInt":{"$ref":"#/definitions/EarthquakeInformation.IntensityClass"},"maxLpgmInt":{"$ref":"#/definitions/EarthquakeInformation.LpgmIntensityClass"},"lpgmCategory":{"$ref":"#/definitions/EarthquakeInformation.LpgmCategory"},"prefectures":{"type":"array","items":{"allOf":[{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"maxInt":{"enum":["1","2","3","4","5+","5-","6+","6-","7"],"type":"string"},"revise":{"enum":["上方修正","追加"],"type":"string"}},"required":["code","name"]},{"type":"object","properties":{"maxLpgmInt":{"$ref":"#/definitions/EarthquakeInformation.LpgmIntensityClass"}},"required":["maxLpgmInt"]}]}},"regions":{"type":"array","items":{"allOf":[{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"maxInt":{"enum":["1","2","3","4","5+","5-","6+","6-","7"],"type":"string"},"revise":{"enum":["上方修正","追加"],"type":"string"}},"required":["code","name"]},{"type":"object","properties":{"maxLpgmInt":{"$ref":"#/definitions/EarthquakeInformation.LpgmIntensityClass"}},"required":["maxLpgmInt"]}]}},"stations":{"type":"array","items":{"allOf":[{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"int":{"enum":["!5-","1","2","3","4","5+","5-","6+","6-","7"],"type":"string"},"revise":{"enum":["上方修正","追加"],"type":"string"},"condition":{"enum":["震度5弱以上未入電"],"type":"string"}},"required":["code","int","name"]},{"type":"object","properties":{"lpgmInt":{"$ref":"#/definitions/EarthquakeInformation.LpgmIntensityClass"},"sva":{"type":"object","properties":{"unit":{"type":"string","enum":["cm/s"]},"value":{"type":"string"}},"required":["unit","value"]},"prePeriods":{"type":"array","items":{"type":"object","properties":{"periodicBand":{"type":"object","properties":{"unit":{"type":"string","enum":["秒台"]},"value":{"type":"string"}},"required":["unit","value"]},"lpgmInt":{"$ref":"#/definitions/EarthquakeInformation.LpgmIntensityClass"},"sva":{"type":"object","properties":{"unit":{"type":"string","enum":["cm/s"]},"value":{"type":"string"}},"required":["unit","value"]}},"required":["lpgmInt","periodicBand","sva"]}}},"required":["lpgmInt","prePeriods","sva"]}]}}},"required":["lpgmCategory","maxInt","maxLpgmInt","prefectures","regions","stations"]},"text":{"type":"string"},"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"]}}}},"required":["comments","earthquake"]},"EarthquakeInformation.LpgmIntensityClass":{"enum":["0","1","2","3","4"],"type":"string"},"EarthquakeInformation.LpgmCategory":{"enum":["1","2","3","4"],"type":"string"},"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#"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"anyOf":[{"$ref":"#/definitions/EarthquakeNankai.PublicVYSE50"},{"$ref":"#/definitions/EarthquakeNankai.PublicVYSE51"},{"$ref":"#/definitions/EarthquakeNankai.PublicVYSE52"},{"$ref":"#/definitions/EarthquakeNankai.Cancel"}],"definitions":{"EarthquakeNankai.PublicVYSE50":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeNankai.Schema"},"type":{"type":"string","enum":["南海トラフ地震臨時情報"]},"title":{"type":"string"},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"null"},"infoKind":{"type":"string","enum":["南海トラフ地震に関連する情報"]},"body":{"$ref":"#/definitions/EarthquakeNankai.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"]},"EarthquakeNankai.Schema":{"type":"object","properties":{"type":{"type":"string","enum":["earthquake-nankai"]},"version":{"type":"string","enum":["1.0.0"]}},"required":["type","version"]},"EarthquakeNankai.PublicBody":{"type":"object","properties":{"earthquakeInfo":{"$ref":"#/definitions/EarthquakeNankai.EarthquakeInfo"},"nextAdvisory":{"type":"string"},"text":{"type":"string"}}},"EarthquakeNankai.EarthquakeInfo":{"type":"object","properties":{"kind":{"$ref":"#/definitions/EarthquakeNankai.EarthquakeInfoKind"},"text":{"type":"string"},"appendix":{"type":"string"}},"required":["text"]},"EarthquakeNankai.EarthquakeInfoKind":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"]},"EarthquakeNankai.PublicVYSE51":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeNankai.Schema"},"type":{"type":"string","enum":["南海トラフ地震関連解説情報"]},"title":{"type":"string"},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"string"},"infoKind":{"type":"string","enum":["南海トラフ地震に関連する情報"]},"body":{"$ref":"#/definitions/EarthquakeNankai.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"]},"EarthquakeNankai.PublicVYSE52":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeNankai.Schema"},"type":{"type":"string","enum":["南海トラフ地震関連解説情報"]},"title":{"type":"string"},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"null"},"infoKind":{"type":"string","enum":["南海トラフ地震に関連する情報"]},"body":{"$ref":"#/definitions/EarthquakeNankai.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"]},"EarthquakeNankai.Cancel":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeNankai.Schema"},"type":{"enum":["南海トラフ地震臨時情報","南海トラフ地震関連解説情報"],"type":"string"},"title":{"type":"string"},"infoType":{"type":"string","enum":["取消"]},"eventId":{"type":"string"},"infoKind":{"type":"string","enum":["南海トラフ地震に関連する情報"]},"body":{"$ref":"#/definitions/EarthquakeNankai.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"]},"EarthquakeNankai.CancelBody":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]}},"$schema":"http://json-schema.org/draft-07/schema#"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"anyOf":[{"$ref":"#/definitions/EewInformation.PublicTesting"},{"$ref":"#/definitions/EewInformation.PublicCommon"},{"$ref":"#/definitions/EewInformation.Cancel"}],"definitions":{"EewInformation.PublicTesting":{"type":"object","properties":{"isLastInfo":{"type":"boolean","enum":[false]},"text":{"type":"string"},"_schema":{"$ref":"#/definitions/EewInformation.Schema"},"type":{"type":"string","enum":["緊急地震速報テスト"]},"title":{"type":"string","enum":["緊急地震速報テスト"]},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"string"},"infoKind":{"type":"string","enum":["緊急地震速報"]},"body":{"$ref":"#/definitions/EewInformation.PublicTesting"},"_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","isLastInfo","pressDateTime","publishingOffice","reportDateTime","serialNo","status","targetDateTime","text","title","type"]},"EewInformation.Schema":{"type":"object","properties":{"type":{"type":"string","enum":["eew-information"]},"version":{"type":"string","enum":["1.0.0"]}},"required":["type","version"]},"EewInformation.PublicCommon":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EewInformation.Schema"},"type":{"enum":["緊急地震速報(予報)","緊急地震速報(地震動予報)","緊急地震速報(警報)"],"type":"string"},"title":{"enum":["緊急地震速報(予報)","緊急地震速報(地震動予報)","緊急地震速報(警報)"],"type":"string"},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"string"},"infoKind":{"type":"string","enum":["緊急地震速報"]},"body":{"$ref":"#/definitions/EewInformation.PublicCommonBody"},"_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"]},"EewInformation.PublicCommonBody":{"type":"object","properties":{"isLastInfo":{"type":"boolean"},"zones":{"type":"array","items":{"$ref":"#/definitions/EewInformation.WarningArea"}},"prefectures":{"type":"array","items":{"$ref":"#/definitions/EewInformation.WarningArea"}},"regions":{"type":"array","items":{"$ref":"#/definitions/EewInformation.WarningArea"}},"earthquake":{"$ref":"#/definitions/EewInformation.Earthquake"},"intensity":{"$ref":"#/definitions/EewInformation.Intensity"},"text":{"type":"string"},"comments":{"type":"object","properties":{"free":{"type":"string"},"warning":{"type":"object","properties":{"text":{"type":"string"},"codes":{"type":"array","items":{"type":"string"}}},"required":["codes","text"]}}}},"required":["comments","earthquake","isLastInfo"]},"EewInformation.WarningArea":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"kind":{"$ref":"#/definitions/EewInformation.WarningAreaKind"}},"required":["code","kind","name"]},"EewInformation.WarningAreaKind":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"lastKind":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"]}},"required":["code","lastKind","name"]},"EewInformation.Earthquake":{"type":"object","properties":{"originTime":{"type":"string"},"arrivalTime":{"type":"string"},"condition":{"enum":["仮定震源要素"],"type":"string"},"hypocenter":{"$ref":"#/definitions/EewInformation.EarthquakeHypocenter"},"magnitude":{"$ref":"#/definitions/EewInformation.EarthquakeMagnitude"}},"required":["arrivalTime","hypocenter","magnitude"]},"EewInformation.EarthquakeHypocenter":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"coordinate":{"anyOf":[{"type":"object","properties":{"condition":{"type":"string","enum":["不明"]}},"required":["condition"]},{"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":["null","string"]}},"required":["type","unit","value"]},"geodeticSystem":{"type":"string","enum":["日本測地系"]}},"required":["geodeticSystem","latitude","longitude"]}]},"depth":{"type":"object","properties":{"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]},"value":{"type":"string"}},"required":["type","unit","value"]},"reduce":{"$ref":"#/definitions/EewInformation.EarthquakeHypocenterReduce"},"landOrSea":{"enum":["内陸","海域"],"type":"string"},"accuracy":{"$ref":"#/definitions/EewInformation.EarthquakeHypocenterAccuracy"}},"required":["accuracy","code","coordinate","depth","name","reduce"]},"EewInformation.EarthquakeHypocenterReduce":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"]},"EewInformation.EarthquakeHypocenterAccuracy":{"type":"object","properties":{"epicenters":{"type":"array","items":[{"enum":["0","1","2","3","4","5","6","7","8"],"type":"string"},{"enum":["0","1","2","3","4","9"],"type":"string"}],"minItems":2,"maxItems":2},"depth":{"enum":["0","1","2","3","4","5","6","7","8"],"type":"string"},"magnitudeCalculation":{"enum":["0","2","3","4","5","6","8"],"type":"string"},"numberOfMagnitudeCalculation":{"enum":["0","1","2","3","4","5"],"type":"string"}},"required":["depth","epicenters","magnitudeCalculation","numberOfMagnitudeCalculation"]},"EewInformation.EarthquakeMagnitude":{"type":"object","properties":{"type":{"type":"string","enum":["マグニチュード"]},"unit":{"enum":["M","Mj"],"type":"string"},"value":{"type":["null","string"]},"condition":{"enum":["M不明"],"type":"string"}},"required":["type","unit","value"]},"EewInformation.Intensity":{"type":"object","properties":{"forecastMaxInt":{"$ref":"#/definitions/EewInformation.IntensityForecastMaxInt"},"forecastLpgmMaxInt":{"$ref":"#/definitions/EewInformation.IntensityForecastLpgmMaxInt"},"appendix":{"$ref":"#/definitions/EewInformation.IntensityAppendix"},"regions":{"type":"array","items":{"$ref":"#/definitions/EewInformation.IntensityRegion"}}},"required":["forecastMaxInt","regions"]},"EewInformation.IntensityForecastMaxInt":{"type":"object","properties":{"from":{"enum":["0","1","2","3","4","5+","5-","6+","6-","7","不明"],"type":"string"},"to":{"enum":["0","1","2","3","4","5+","5-","6+","6-","7","over","不明"],"type":"string"}},"required":["from","to"]},"EewInformation.IntensityForecastLpgmMaxInt":{"type":"object","properties":{"from":{"enum":["0","1","2","3","4","不明"],"type":"string"},"to":{"enum":["0","1","2","3","4","over","不明"],"type":"string"}},"required":["from","to"]},"EewInformation.IntensityAppendix":{"type":"object","properties":{"maxIntChange":{"enum":["0","1","2"],"type":"string"},"maxLpgmIntChange":{"enum":["0","1","2"],"type":"string"},"maxIntChangeReason":{"enum":["0","1","2","3","4","9"],"type":"string"}},"required":["maxIntChange","maxIntChangeReason"]},"EewInformation.IntensityRegion":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"forecastMaxInt":{"$ref":"#/definitions/EewInformation.IntensityForecastMaxInt"},"forecastLpgmMaxInt":{"$ref":"#/definitions/EewInformation.IntensityForecastLpgmMaxInt"},"kind":{"$ref":"#/definitions/EewInformation.WarningAreaKind"}},"required":["code","forecastMaxInt","kind","name"]},"EewInformation.Cancel":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EewInformation.Schema"},"type":{"enum":["緊急地震速報テスト","緊急地震速報(予報)","緊急地震速報(地震動予報)","緊急地震速報(警報)"],"type":"string"},"title":{"enum":["緊急地震速報テスト","緊急地震速報(予報)","緊急地震速報(地震動予報)","緊急地震速報(警報)"],"type":"string"},"infoType":{"type":"string","enum":["取消"]},"eventId":{"type":"string"},"serialNo":{"type":"string"},"infoKind":{"type":"string","enum":["緊急地震速報"]},"body":{"$ref":"#/definitions/EewInformation.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"]},"EewInformation.CancelBody":{"type":"object","properties":{"isLastInfo":{"type":"boolean","enum":[true]},"text":{"type":"string"}},"required":["isLastInfo","text"]}},"$schema":"http://json-schema.org/draft-07/schema#"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"anyOf":[{"$ref":"#/definitions/TsunamiInformation.PublicVTSE41"},{"$ref":"#/definitions/TsunamiInformation.PublicVTSE51"},{"$ref":"#/definitions/TsunamiInformation.PublicVTSE52"},{"$ref":"#/definitions/TsunamiInformation.Cancel"}],"definitions":{"TsunamiInformation.PublicVTSE41":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/TsunamiInformation.Schema"},"type":{"type":"string","enum":["津波警報・注意報・予報a"]},"title":{"type":"string"},"infoType":{"enum":["発表","訂正"],"type":"string"},"validDateTime":{"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"null"},"infoKind":{"type":"string","enum":["津波警報・注意報・予報"]},"body":{"$ref":"#/definitions/TsunamiInformation.PublicBodyVTSE41"},"_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"]},"TsunamiInformation.Schema":{"type":"object","properties":{"type":{"type":"string","enum":["tsunami-information"]},"version":{"type":"string","enum":["1.0.0"]}},"required":["type","version"]},"TsunamiInformation.PublicBodyVTSE41":{"type":"object","properties":{"tsunami":{"$ref":"#/definitions/TsunamiInformation.PublicBodyVTSE41Tsunami"},"earthquakes":{"type":"array","items":{"$ref":"#/definitions/Earthquake"}},"text":{"type":"string"},"comments":{"type":"object","properties":{"free":{"type":"string"},"warning":{"type":"object","properties":{"text":{"type":"string"},"codes":{"type":"array","items":{"type":"string"}}},"required":["codes","text"]}}}},"required":["earthquakes","tsunami"]},"TsunamiInformation.PublicBodyVTSE41Tsunami":{"type":"object","properties":{"forecasts":{"type":"array","items":{"$ref":"#/definitions/TsunamiInformation.TsunamiForecastVXSE41"}}},"required":["forecasts"]},"TsunamiInformation.TsunamiForecastVXSE41":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"kind":{"$ref":"#/definitions/TsunamiInformation.TsunamiForecastKind"},"firstHeight":{"$ref":"#/definitions/TsunamiInformation.TsunamiForecastFirstHeight"},"maxHeight":{"$ref":"#/definitions/TsunamiInformation.TsunamiForecastMaxHeight"}},"required":["code","firstHeight","kind","maxHeight","name"]},"TsunamiInformation.TsunamiForecastKind":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"lastKind":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"]}},"required":["code","lastKind","name"]},"TsunamiInformation.TsunamiForecastFirstHeight":{"type":"object","properties":{"arrivalTime":{"type":"string"},"condition":{"enum":["ただちに津波来襲と予測","津波到達中と推測","第1波の到達を確認"],"type":"string"},"revise":{"enum":["更新","追加"],"type":"string"}}},"TsunamiInformation.TsunamiForecastMaxHeight":{"type":"object","properties":{"height":{"$ref":"#/definitions/TsunamiInformation.TsunamiForecastMaxHeightValue"},"condition":{"enum":["重要"],"type":"string"},"revise":{"enum":["更新","追加"],"type":"string"}},"required":["height"]},"TsunamiInformation.TsunamiForecastMaxHeightValue":{"type":"object","properties":{"type":{"type":"string","enum":["津波の高さ"]},"unit":{"type":"string","enum":["m"]},"value":{"type":["null","string"]},"over":{"enum":[true],"type":"boolean"},"condition":{"enum":["巨大","高い"],"type":"string"}},"required":["type","unit","value"]},"Earthquake":{"type":"object","properties":{"originTime":{"type":"string"},"arrivalTime":{"type":"string"},"hypocenter":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"coordinate":{"anyOf":[{"type":"object","properties":{"condition":{"type":"string","enum":["不明"]}},"required":["condition"]},{"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":["null","string"]}},"required":["type","unit","value"]},"geodeticSystem":{"enum":["日本測地系"],"type":"string"}},"required":["latitude","longitude"]}]},"depth":{"anyOf":[{"allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]}},"required":["type","unit"]},{"type":"object","properties":{"value":{"type":"null"},"condition":{"type":"string","enum":["不明"]}},"required":["condition","value"]}]},{"allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]}},"required":["type","unit"]},{"type":"object","properties":{"value":{"type":"string","enum":["0"]},"condition":{"type":"string","enum":["ごく浅い"]}},"required":["condition","value"]}]},{"allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]}},"required":["type","unit"]},{"type":"object","properties":{"value":{"type":"string","enum":["700"]},"condition":{"type":"string","enum":["700km以上"]}},"required":["condition","value"]}]},{"allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]}},"required":["type","unit"]},{"type":"object","properties":{"value":{"type":"string"}},"required":["value"]}]}]},"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"]},"magnitude":{"anyOf":[{"allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["マグニチュード"]},"unit":{"enum":["M","Mj"],"type":"string"}},"required":["type","unit"]},{"type":"object","properties":{"value":{"type":"null"},"condition":{"enum":["M不明","M8を超える巨大地震"],"type":"string"}},"required":["condition","value"]}]},{"allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["マグニチュード"]},"unit":{"enum":["M","Mj"],"type":"string"}},"required":["type","unit"]},{"type":"object","properties":{"value":{"type":"string"}},"required":["value"]}]}]}},"required":["arrivalTime","hypocenter","magnitude","originTime"]},"Omit<UnitValueNotNull<never,\"km\",never>,\"type\"|\"condition\">":{"type":"object","properties":{"unit":{"type":"string","enum":["km"]},"value":{"type":"string"}},"required":["unit","value"]},"TsunamiInformation.PublicVTSE51":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/TsunamiInformation.Schema"},"type":{"type":"string","enum":["津波情報a"]},"title":{"enum":["各地の満潮時刻・津波到達予想時刻に関する情報","津波観測に関する情報"],"type":"string"},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"string"},"infoKind":{"type":"string","enum":["津波情報"]},"body":{"$ref":"#/definitions/TsunamiInformation.PublicBodyVTSE51"},"_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"]},"TsunamiInformation.PublicBodyVTSE51":{"type":"object","properties":{"tsunami":{"$ref":"#/definitions/TsunamiInformation.PublicBodyVTSE51Tsunami"},"earthquakes":{"type":"array","items":{"$ref":"#/definitions/Earthquake"}},"text":{"type":"string"},"comments":{"type":"object","properties":{"free":{"type":"string"},"warning":{"type":"object","properties":{"text":{"type":"string"},"codes":{"type":"array","items":{"type":"string"}}},"required":["codes","text"]}}}},"required":["earthquakes","tsunami"]},"TsunamiInformation.PublicBodyVTSE51Tsunami":{"type":"object","properties":{"forecasts":{"type":"array","items":{"$ref":"#/definitions/TsunamiInformation.TsunamiForecastVXSE51"}},"observations":{"type":"array","items":{"$ref":"#/definitions/TsunamiInformation.TsunamiObservationVXSE51"}}},"required":["forecasts","observations"]},"TsunamiInformation.TsunamiForecastVXSE51":{"type":"object","properties":{"stations":{"type":"array","items":{"$ref":"#/definitions/TsunamiInformation.TsunamiForecastStation"}},"code":{"type":"string"},"name":{"type":"string"},"kind":{"$ref":"#/definitions/TsunamiInformation.TsunamiForecastKind"},"firstHeight":{"$ref":"#/definitions/TsunamiInformation.TsunamiForecastFirstHeight"},"maxHeight":{"$ref":"#/definitions/TsunamiInformation.TsunamiForecastMaxHeight"}},"required":["code","firstHeight","kind","maxHeight","name"]},"TsunamiInformation.TsunamiForecastStation":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"highTideDateTime":{"type":"string"},"firstHeight":{"$ref":"#/definitions/TsunamiInformation.TsunamiForecastFirstHeight"}},"required":["code","firstHeight","highTideDateTime","name"]},"TsunamiInformation.TsunamiObservationVXSE51":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"stations":{"type":"array","items":{"$ref":"#/definitions/TsunamiInformation.TsunamiObservationStation"}}},"required":["code","name","stations"]},"TsunamiInformation.TsunamiObservationStation":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"sensor":{"type":"string"},"firstHeight":{"$ref":"#/definitions/TsunamiInformation.TsunamiObservationStationFirstHeight"},"maxHeight":{"$ref":"#/definitions/TsunamiInformation.TsunamiObservationStationMaxHeight"}},"required":["code","firstHeight","maxHeight","name"]},"TsunamiInformation.TsunamiObservationStationFirstHeight":{"type":"object","properties":{"arrivalTime":{"type":"string"},"initial":{"enum":["引き","押し"],"type":"string"},"condition":{"enum":["第1波識別不能"],"type":"string"},"revise":{"enum":["更新","追加"],"type":"string"}},"required":["arrivalTime"]},"TsunamiInformation.TsunamiObservationStationMaxHeight":{"type":"object","properties":{"dateTime":{"type":"string"},"height":{"$ref":"#/definitions/TsunamiInformation.TsunamiObservationStationMaxHeightValue"},"condition":{"enum":["微弱","観測中","重要"],"type":"string"},"revise":{"enum":["更新","追加"],"type":"string"}}},"TsunamiInformation.TsunamiObservationStationMaxHeightValue":{"type":"object","properties":{"type":{"type":"string","enum":["これまでの最大波の高さ"]},"unit":{"type":"string","enum":["m"]},"value":{"type":["null","string"]},"over":{"enum":[true],"type":"boolean"},"condition":{"enum":["上昇中"],"type":"string"}},"required":["type","unit","value"]},"TsunamiInformation.PublicVTSE52":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/TsunamiInformation.Schema"},"type":{"type":"string","enum":["沖合の津波観測に関する情報"]},"title":{"type":"string","enum":["沖合の津波観測に関する情報"]},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"string"},"infoKind":{"type":"string","enum":["津波情報"]},"body":{"$ref":"#/definitions/TsunamiInformation.PublicBodyVTSE52"},"_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"]},"TsunamiInformation.PublicBodyVTSE52":{"type":"object","properties":{"tsunami":{"$ref":"#/definitions/TsunamiInformation.PublicBodyVTSE52Tsunami"},"earthquakes":{"type":"array","items":{"$ref":"#/definitions/Earthquake"}},"text":{"type":"string"},"comments":{"type":"object","properties":{"free":{"type":"string"},"warning":{"type":"object","properties":{"text":{"type":"string"},"codes":{"type":"array","items":{"type":"string"}}},"required":["codes","text"]}}}},"required":["earthquakes","tsunami"]},"TsunamiInformation.PublicBodyVTSE52Tsunami":{"type":"object","properties":{"observations":{"type":"array","items":{"$ref":"#/definitions/TsunamiInformation.TsunamiObservationVXSE52"}},"estimations":{"type":"array","items":{"$ref":"#/definitions/TsunamiInformation.TsunamiEstimation"}}},"required":["estimations","observations"]},"TsunamiInformation.TsunamiObservationVXSE52":{"type":"object","properties":{"code":{"type":"null"},"name":{"type":"null"},"stations":{"type":"array","items":{"$ref":"#/definitions/TsunamiInformation.TsunamiObservationStation"}}},"required":["code","name","stations"]},"TsunamiInformation.TsunamiEstimation":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"firstHeight":{"$ref":"#/definitions/TsunamiInformation.TsunamiEstimationFirstHeight"},"maxHeight":{"$ref":"#/definitions/TsunamiInformation.TsunamiEstimationMaxHeight"}},"required":["code","firstHeight","maxHeight","name"]},"TsunamiInformation.TsunamiEstimationFirstHeight":{"type":"object","properties":{"arrivalTime":{"type":"string"},"condition":{"enum":["早いところでは既に津波到達と推定"],"type":"string"},"revise":{"enum":["更新","追加"],"type":"string"}},"required":["arrivalTime"]},"TsunamiInformation.TsunamiEstimationMaxHeight":{"type":"object","properties":{"dateTime":{"type":"string"},"height":{"$ref":"#/definitions/TsunamiInformation.TsunamiEstimationMaxHeightValue"},"condition":{"enum":["微弱","観測中","重要"],"type":"string"},"revise":{"enum":["更新","追加"],"type":"string"}}},"TsunamiInformation.TsunamiEstimationMaxHeightValue":{"type":"object","properties":{"type":{"type":"string","enum":["津波の高さ"]},"unit":{"type":"string","enum":["m"]},"value":{"type":["null","string"]},"over":{"enum":[true],"type":"boolean"}},"required":["type","unit","value"]},"TsunamiInformation.Cancel":{"type":"object","properties":{"type":{"enum":["各地の満潮時刻・津波到達予想時刻に関する情報","大津波警報・津波警報・津波予報a","津波情報a","津波観測に関する情報"],"type":"string"},"infoType":{"type":"string","enum":["取消"]},"eventId":{"type":"string"},"infoKind":{"enum":["津波情報","津波警報・注意報・予報"],"type":"string"},"body":{"$ref":"#/definitions/TsunamiInformation.CancelBody"},"_originalId":{"type":"string"},"_schema":{"type":"object","properties":{"type":{"type":"string"},"version":{"type":"string"}},"required":["type","version"]},"title":{"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"]},"TsunamiInformation.CancelBody":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]}},"$schema":"http://json-schema.org/draft-07/schema#"}
|