Skip to content

Commit

Permalink
Feat/54 incorrect config error (#7)
Browse files Browse the repository at this point in the history
* feat: updtaing event-catalog

* feat: making eventVersion a number

* feat: creating new test contract

* feat: creating new generateContractDocumentation file

* feat: setting up correct versioning folders

* feat: readability changes

* feat: identical version error thrown

* feat: contract filename check and improved error messages

* feat: vitest setup

* feat: adding getContractFileNames test

* feat: writing test for writeIndexFile

* feat: writing test for isValidDirectoryName

* feat: adding tests for generate-docs filepath functions

* feat: renaming generateContractDocumentation

* feat: creating generatingAllContractInformation file and creating newest version record test

* feat: tests for generateAllContractInformation

* feat: test for generateDocs

* feat: renaming file for consistency

* feat: simplifying tests

* feat: install mock-fs

* feat: reverting eventcatalog config

* feat: removing uneeded readme

* feat: removing uneeded script

* feat: renaming functions

* feat: creating basic integration test setup

* feat: fixing small typeguard bug

* feat: updating isInvalidDirectoryName
  • Loading branch information
April-Bates-Dev authored Aug 25, 2023
1 parent 64e9c04 commit aa5fc2b
Show file tree
Hide file tree
Showing 29 changed files with 17,737 additions and 6,312 deletions.
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,24 @@ cdk.out

# Built Files
dist

# Production
/build
/public/schemas

# Generated files
.next
out

# Misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*

.eventcatalog-core
20 changes: 20 additions & 0 deletions event-catalog/events/Test/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Test
version: 1
summary: |
A summary
producers:
- Producer
consumers:
- Consumer
owners:
- Name
---

<Admonition>Some information</Admonition>

### Details

Some details...

<Schema />
42 changes: 42 additions & 0 deletions event-catalog/events/Test/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"detail-type": {
"type": "string",
"const": "Test"
},
"detail": {
"type": "object",
"properties": {
"detail-version": {
"type": "number",
"const": 1
},
"data": {
"type": "object",
"properties": {
"test": {
"type": "string"
}
},
"required": [
"test"
],
"additionalProperties": false
}
},
"required": [
"detail-version",
"data"
],
"additionalProperties": false
}
},
"required": [
"detail",
"detail-type"
],
"additionalProperties": false,
"definitions": {}
}
Loading

0 comments on commit aa5fc2b

Please sign in to comment.