![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.
nft-schemas
Advanced tools
npm i @dcl/schemas
We will export types that also act as values. We do that using the "namespaces" of typescript. That is, every type is also a JS object, including two properties: schema
and validate
. It can also be a const, but a namespace sounds better.
// Declare type
export type MyType = {
value: number;
};
// Declare namespace for the type
export namespace MyType {
export const schema: Schema<MyType> = {
type: "object",
properties: {
value: { type: number },
},
additionalProperties: false,
required: ["value"],
};
export const validate = generateValidator<MyType>(schema);
}
In that sense, MyType can be both used as type const a: MyType
and as object MyType.validate(a)
.
Please add types and schemas of your domain into the src/<team>
folder, also add your team to the CODEOWNERS repository to make sure nobody accidentally changes it without your team noticing it.
Please notify about changes to the schemas to the teams by adding the whole team (i.e. @decentraland/dapps
) as reviewers of the pull requests.
It is recommended that if you are a stakeholder of the interoperable parts of Decentraland, you are subscribed to this repository (wathing it in the button up right).
To make sure everybody is aware of changes in types, we have a process of api-extraction using https://api-extractor.com. It creates a report file that should be reviewed upon every change and commited as part of the PR.
To generate the file with your changes run npm run build && npm run refresh-api
.
In the CI, npm run check-api
is executed to verify the generated file matches the exported types.
Versions are handled manually using Github releases and semver.
Main branch is automatically published to the @next
dist tag to test integrations before final releases happen.
FAQs
```bash npm i @dcl/schemas ```
We found that nft-schemas demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.