Renamed schemas files to conform to Apple official names. Todos have been added for next major

This commit is contained in:
Alexander Cerutti
2021-08-25 22:56:44 +02:00
parent 4470da11ca
commit 1f41ce7602
8 changed files with 35 additions and 15 deletions

17
src/schemas/NFC.ts Normal file
View File

@@ -0,0 +1,17 @@
import Joi from "joi";
/**
* @see https://developer.apple.com/documentation/walletpasses/pass/nfc
*/
export interface NFC {
message: string;
encryptionPublicKey: string;
requiresAuthentication?: boolean;
}
export const NFC = Joi.object<NFC>().keys({
message: Joi.string().required().max(64),
encryptionPublicKey: Joi.string().required(),
requiresAuthentication: Joi.boolean(),
});