![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@pa-media-group/ts-iptc-ninjs-type
Advanced tools
Typescript type definition of IPTCs NinJS V1.3 standard.
npm i @pa-media-group/ts-iptc-ninjs-type
import { IptcNinjs } from 'ts-iptc-ninjs-type';
const typed: IptcNinjs = {
"uri": "https://myuri.com/test/1"
};
The IPTC NinJS 1.3 schema allows for pattern properties as defined at the top level by: -
"^description_[a-zA-Z0-9_]+": {
"title": "Description",
"description": "A free-form textual description of the content of the item. (The string appended to description_ in the property name should reflect the format and/or the purpose of the text, separating the parts with _). nar:description",
"type": "string"
},
"^body_[a-zA-Z0-9_]+": {
"title": "Body",
"description": "The textual content of the news object. (The string appended to body_ in the property name should reflect the format and/or the purpose of the text, separating the parts with _). nar:inlineData or nar:inlineXML",
"type": "string"
},
"^headline_[a-zA-Z0-9_]+": {
"title": "Extra headlines",
"description": "Additional headlines or strings of that type can be handled here. This is not replacing the main headline-property in ninjs. (The string appended to headline_ in the property name should reflect the format and/or the purpose of the text, separating the parts with _) nar:headline with roles issue #13. (Added in 1.3)",
"type": "string"
}
Also within 'place': -
"^geometry_[a-zA-Z0-9_]+": {
"description": "An object holding geo data of this place. Could be of any relevant geo data JSON object definition.",
"type": "object"
}
Without being opinionated on the patterns users of the IptcNinjs interface will choose to use these partially defined pattern properties could not be represented in the interface.
To use these it is recommended you extend the interface to your needs e.g.
import { IptcNinjs } from 'ts-iptc-ninjs-type';
interface Ninjs extends IptcNinjs {
description_html?: string,
description_text?: string,
}
import { IptcNinjs, NinjsLink } from 'ts-iptc-ninjs-type';
interface NinjsPlace extends NinjsLink {
geometry_example?: Record<string, unknown>;
}
interface Ninjs extends IptcNinjs {
place?: NinjsPlace[]
}
Included is a validator which can be used to ensure JSON conforms to the IPTC Ninjs 1.3 schema it can be used as follows: -
import { IptcNinjs, IptcNinjsValidator } from 'ts-iptc-ninjs-type';
const validator: IptcNinjsValidator = new IptcNinjsValidator();
const typed: IptcNinjs = {
"uri": "https://myuri.com/test/1"
};
const valid: boolean = validator.validate(typed);
FAQs
Types for IPTCs Ninjs standard 1.3
The npm package @pa-media-group/ts-iptc-ninjs-type receives a total of 57 weekly downloads. As such, @pa-media-group/ts-iptc-ninjs-type popularity was classified as not popular.
We found that @pa-media-group/ts-iptc-ninjs-type demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.