Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removes xml mappers and references within openapi #13

Merged
merged 1 commit into from
Oct 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions bin/build-coinbase.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@

import { createReadStream, createWriteStream } from 'node:fs'
import { mkdir } from 'node:fs/promises'

import { readCache, byExchange } from '../lib/cache.mjs'

import { fromJsonl as jsonlToCsv } from '../lib/stream/csv.mjs'
import { fromJsonl as jsonlToJson } from '../lib/stream/json.mjs'
import { fromJsonl as jsonlToXml } from '../lib/stream/xml.mjs'

for (const file of await readCache(byExchange('coinbase'))) {
console.log('► bin/build-coinbase loading:%s', file)
Expand All @@ -28,9 +25,4 @@ for (const file of await readCache(byExchange('coinbase'))) {
jsonlToJson(createReadStream(file))
.pipe(createWriteStream(`www/api/${id}/${interval}.json`))
.on('close', () => console.timeEnd(`◄ bin/build-coinbase created: ${file} ➡️ www/api/${id}/${interval}.json elapsed`))
// xml
console.time(`◄ bin/build-coinbase created: ${file} ➡️ www/api/${id}/${interval}.xml elapsed`)
jsonlToXml(createReadStream(file))
.pipe(createWriteStream(`www/api/${id}/${interval}.xml`))
.on('close', () => console.timeEnd(`◄ bin/build-coinbase created: ${file} ➡️ www/api/${id}/${interval}.xml elapsed`))
}
32 changes: 0 additions & 32 deletions lib/stream/xml.mjs

This file was deleted.

5 changes: 0 additions & 5 deletions www/api/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
"type": "string",
"enum": [
"csv",
"xml",
"json"
]
},
Expand Down Expand Up @@ -132,7 +131,6 @@
"type": "string",
"enum": [
"csv",
"xml",
"json"
]
},
Expand Down Expand Up @@ -211,7 +209,6 @@
"type": "string",
"enum": [
"csv",
"xml",
"json"
]
},
Expand Down Expand Up @@ -263,7 +260,6 @@
"type": "string",
"enum": [
"csv",
"xml",
"json"
]
},
Expand All @@ -280,7 +276,6 @@
"description": "Successful response",
"content": {
"application/json": {},
"application/xml": {},
"text/csv": {
"schema": {
"type": "array",
Expand Down