Skip to content

Commit

Permalink
Remove contact element in APIv4 (#8147)
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlgo11 authored Aug 3, 2024
1 parent 2254d63 commit 568ea59
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 34 deletions.
7 changes: 0 additions & 7 deletions scripts/APIv4.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,6 @@ const processEntries = async (files) => {
const data = await readJSONFile(file);
const entry = data[Object.keys(data)[0]];

// Rename contact.twitter to contact.x if it exists
if (entry.contact && entry.contact.twitter) {
entry.contact.x = entry.contact.twitter;
delete entry.contact.twitter;
}

// Add the main domain entry
entries[entry.domain] = entry;

Expand Down Expand Up @@ -93,7 +87,6 @@ const generateApi = async (entries) => {
Object.entries(entries).map(async ([domain, entry]) => {
const apiEntry = {
methods: entry["tfa"],
contact: entry.contact,
"custom-software": entry["custom-software"],
"custom-hardware": entry["custom-hardware"],
documentation: entry.documentation,
Expand Down
27 changes: 0 additions & 27 deletions tests/schemas/APIv4.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,33 +23,6 @@
]
}
},
"contact": {
"type": "object",
"description": "Contact information for the service.",
"properties": {
"email": {
"type": "string",
"format": "email"
},
"facebook": {
"type": "string",
"minLength": 1
},
"x": {
"type": "string",
"pattern": "^(\\w){1,15}$"
},
"form": {
"type": "string",
"format": "uri"
},
"language": {
"type": "string",
"pattern": "^[a-z]{2}$"
}
},
"additionalProperties": false
},
"custom-software": {
"type": "array",
"description": "Custom software 2FA solutions used by the service.",
Expand Down

0 comments on commit 568ea59

Please sign in to comment.