-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: AiScript Object Notation #897
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
|
JSON5の拡張になったら |
stringifyが必要だけどそこまではできなかった |
する必要があるかどうかは謎(今JSONではなくJSON5にしている理由(例: keyをクォーテーションする必要がないなど?)を満足できる状態にするだけで良い可能性はある - #888 (comment) ) |
もしMisskeyでAiSONをJSON5代わりにしようとすると既存のJSON5(テーマなど)が使えなくなる可能性があるかも? |
{
id: '17587283-dd92-4a2c-a22c-be0637c9e22a',
name: 'Danboard',
author: 'syuilo',
base: 'light',
props: {
accent: 'rgb(218, 141, 49)',
bg: 'rgb(218, 212, 190)',
fg: 'rgb(115, 108, 92)',
panel: 'rgb(236, 232, 220)',
renote: 'rgb(100, 152, 106)',
link: 'rgb(100, 152, 106)',
mention: '@accent',
hashtag: 'rgb(100, 152, 106)',
header: 'rgba(239, 227, 213, 0.75)',
navBg: 'rgb(216, 206, 182)',
inputBorder: 'rgba(0, 0, 0, 0.1)',
},
} こんな感じなので普通に使っている分には問題は発生しない気はする(ので無理にJSON5準拠にしなくてもいいんじゃないかしらとおもっていた) |
Co-authored-by: FineArchs <[email protected]>
|
許容されないはず |
ほむん |
Co-authored-by: uzmoi <[email protected]>
@kakkokari-gtyih マージ条件を満たしているのでそちらでマージしてもらって問題ありません。 |
What
AiScriptのオブジェクト表記法を利用したデータ交換用フォーマット「AiScript Object Notation」専用のパース関数を追加
Why
#888 (comment)
Additional info (optional)
雰囲気で書いているので修正は必須(要らなさそうならcloseしたり、変更が必要そうなら勝手にpushしたりして構いません。とりあえずtestを書いて一通り通ることは確認しました)