1.0.4 • Published 11 days ago

@teamteanpm2024/veritatis-blanditiis-quibusdam v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
11 days ago

jsonschema-avro

npm Node.js CI

Converts JSON-schema definitions into Avro definitions.

Install

npm install jsonschema-avro

Consume

const jsonSchemaAvro = require('jsonschema-avro')

const inJson = {
  "description": "Example description",
  "type": "object",
  "properties": {
    "first_name": { "type": "string" },
    "address": {
      "type": "object",
      "properties": {
        "street_address": { "type": "string" }
      }
    }
  }
}

const avro = jsonSchemaAvro.convert(inJson)

Please ensure that the input JSON schema is dereferenced so that all external references have been resolved. json-schema-ref-parser can do this, prior to using this module.

Develop

Avro schema documentation can be found here:

https://docs.oracle.com/cd/E26161_02/html/GettingStartedGuide/avroschemas.html

Testing

To run all tests:

npm test

To run a single test, using the name of the sample:

ONLY=optional npm test

CI uses the following script:

npm run ci

Please run this on your local machine to ensure CI will pass.

Code style

This project uses prettier, to format source files run:

npm run format

Please keep the integration tests to a single test per file for readability.

TODO

  • Handle anyOf and allOf.
viewlastawesomesauceprotocol-buffersdeepcopyopenerpackage.jsoniteratorschemaxtermshrinkwrapes8css variableInt32ArraytrimRightfindupauthgetnopezodbootstrap lessmulti-packagepasswordTypeBoxstablees-shimsmatchesbyteLengthdebuggerpackage managererrorcolorslengthRegExp.prototype.flagsstatelesssameValueZerotelephoneyupdirlogrmwrapjsonstructuredClonestreams2collectiontypedarrayquerystringarktypepostcss-pluginsidezeroes2015intrinsicpostcsspathxssestreefindLastIndexprivate datastylesheetdeterministicObservableframeworksharedarraybufferhandlerssymlinksECMAScript 2019cryptsyntaxECMAScript 5ES2018argvsomeflatMap[[Prototype]]speclistenerspoint-freeinterruptsonceObject.entriesMicrosoftsigtermsetfile systemchildprogressratelimitpersistentexeprocessdependenciespropertywgetPushvalueirqlaunchconsoleArrayBuffer.prototype.slicesanitizeconnectmapcharacterES2019gdprframerpackagemime-dbES3eslintpluginprefixrm -rfRxcompilerutilitiesstyleweaksetObservableslook-upanimationless cssreadjQuerywebtrimStartdefaultECMAScript 2016browserslistrgbhashasciiwarningansiwaitES2017ArrayBuffertermcharactersECMAScript 2017StreamsSymbolguidnamesBigUint64ArrayremovepatchURLclassnamestakejapaneseenumerabletc39nativetypedloggingassertsnodejsforEachObject.assignstyled-componentssortedcodesterminalfast-deep-clonesuperagentpicomatchopenparenthttpsjsonpathhttpbootstrap csssafeECMAScript 3channeljson-schema-validationUint32Arrayless.jsECMAScript 2020error-handlingUint8ArrayclientUint16Arrayrfc4122dataviewenvironmentUint8ClampedArraysuperstructdrag0clifast-copydroplinewraplazyspringmochaclassesapimoduleArrayvariables in csscall-bindhookformajax.envdatastructurefull-widthECMAScript 2015commandassertionfunctionphonequeueparseaccessibilitybuffersreadablestreamfpless compilerprettykarmaieTypeScriptpolyfillmobilejavascriptregular expressionquoterateasserttoolsi18nfixed-widthyamlstartrequeststarterlruES8textObject.isconsttostringtaginternaltyped arrayfastlimitpromisescolumnsa11ygetPrototypeOfES2021validatejoibyteSetmomentFloat32ArrayhelpersimmeridECMAScript 6react-testing-libraryastArrayBuffer#sliceslotRegExp#flagscurriedarraytypesafereusefiletapetestingpositivefastifyimporttypestddwalkRFC-6455emojiArray.prototype.findLastIndexprivatehardlinksESbundlercomparelimitedpnpm9babelES2023mergedayjsnested cssInt16Arrayomitmimetypesvalidationcorses5shimurlsArray.prototype.flattenprotobufexit-codechromefast-clonecirculargetOwnPropertyDescriptorCSSStyleDeclarationurlwatchcreateStyleSheetponyfillbannerdescriptorparsermakemiddlewarekoreanletoperating-systembundlingcalles7RxJSfulloutputvalidatorfantasy-landescapestylesoptimistdescriptionjscss-in-jsloggereast-asian-widthgradients css3poseReflect.getPrototypeOfcolorYAMLcomputed-typestacitgroupByformjsdomcensorcacheES6fastclone-0dataViewECMAScript 7transpiletraversesignalflattenutil.inspectwordbreakkeyprototypeopensargparsesanitizationobjectweakmapObject.getPrototypeOfes2017batchArray.prototype.filtercoreexpresssearchpureqswalkingworkspace:*requireregular expressionsutilclassnamefast-deep-copychinesedatajasminesetImmediatetoStringTagargumentsobjWeakSetconcatECMAScript 2018ES2016languagemake dirfullwidthes-shim APIes-abstractbusyeslint-pluginperformanceasyncString.prototype.trimECMAScript 2022chromiumdeepclonejwtsharedstringifynodesymbolmoduleselectronnumberuser-streamsaccessorcsscopyMapmimeObjectESnextsetPrototypeOfpreserve-symlinksfastcopywordwrap__proto__Object.fromEntriesmovestringifierfindharmonyuuidinferencecallbackcheckuninstalltestclass-validatoriterationboundFunction.prototype.nametypescheme-validationmkdirpspinnersworkervarequalitytesternegativetsgetintrinsicUnderscoresignalsdiffdom-testing-libraryconcatMappreprocessorarraysvalidindicatorreact animationtoArrayvestreal-timexdg-openregulardefinecommand-linecompile lessmetadataInt8ArrayconfigreadableES7writeperformantquerythroatresolvegetoptcss nestingttyjsonschemasymbolsefficientbreakECMAScript 2023isConcatSpreadableargsgrouplinuxbrowsercall-boundvaluesflagsappcontainsincludesreact-hooksassigncryptospawnObject.definePropertyidleJSON-SchemaArray.prototype.flatES2020es2016fseventssetterinspectreact-hook-formavarandomAsyncIteratortypeerrordirectorywaapitoSortedwatcherfsfolderjsxformssigintshebangredux-toolkit6to5styleguideconsumemkdirsbyteOffsetmrubluebirdjson-schema-validatorJSONcolumnbindapolloeventDispatcherdependency managergenericsnpmutilitycolourfilterrmdirTypedArraywatchingrangeerrorcoercibleajvrecursivefind-upvariablespipexdgutilsenderformattingkeyswhatwgformatspinnerslicexhrexitbuffercommanderredactdeep-clonetypanionshellconfigurableURLSearchParamsprunesyntaxerrorString.prototype.matchAllrm -frES5css lessairbnbflagtypeoftaskeventEmittertoolkitimmutablepropertiesArray.prototype.includesrapiddefinePropertyschemeinternal slotpushdeep-copylesscssregexECMAScript 2021minimal3dwidthIteratorwhichWebSocketsecmascriptreducerflateslinteslintconfighasOwnSymbol.toStringTagdebugjson-schematrimLeftFloat64Arrayes6bdddomexectypedarraystimegradients csssortjestsettingsequalArray.prototype.flatMapeventssequenceduplexexpressionqueueMicrotask$.extendcollection.es6matchcjkinvariantwebsitesymlinkoffsetl10nemitthreeArray.prototype.containsparentsentriesstatuspromiseReactiveExtensionsstylingmacosinputshamCSSinstallnegative zerooptionispopmotionconcurrencytrimEndmkdirgetterawait
1.0.2

13 days ago

1.0.4

11 days ago

1.0.3

12 days ago

1.0.1

14 days ago

1.0.0

14 days ago