mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-16 04:25:34 +00:00
Renamed schemas files to conform to Apple official names. Todos have been added for next major
This commit is contained in:
17
src/schemas/NFC.ts
Normal file
17
src/schemas/NFC.ts
Normal 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(),
|
||||
});
|
||||
Reference in New Issue
Block a user