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

Added Capability Construct and strict schema for component style #116

Merged
merged 25 commits into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
6773827
added new construct componentCapability
codeSafari10 Jul 27, 2024
c82d17d
make capabilities generic for all entities
codeSafari10 Jul 27, 2024
ec87ba2
fix build scripts
codeSafari10 Jul 27, 2024
c2acf21
add capabilities to models,relationships,components
codeSafari10 Jul 27, 2024
e4ed89b
generate typescript package
codeSafari10 Jul 27, 2024
78dcf84
Merge branch 'master' of github.com:meshery/schemas into v1beta1
codeSafari10 Jul 27, 2024
bbdaddc
add action kind
codeSafari10 Jul 27, 2024
82c56ef
update description
codeSafari10 Jul 27, 2024
a017259
reduce kind to more generic set
codeSafari10 Jul 27, 2024
7c2d427
fix styles
codeSafari10 Jul 27, 2024
d83d716
make more generic
codeSafari10 Jul 27, 2024
c76c5cc
Apply suggestions from code review
leecalcote Jul 27, 2024
aa429e1
Update schemas/constructs/v1alpha3/relationship.json
leecalcote Jul 27, 2024
e6b2670
make capabilities and style first class
codeSafari10 Jul 28, 2024
59aa315
Merge branch 'v1beta1' of https://github.com/codeSafari10/schemas int…
codeSafari10 Jul 28, 2024
782e82f
add style definitions
codeSafari10 Jul 28, 2024
ce7d8b0
add relationship styles
codeSafari10 Jul 28, 2024
1b21343
use component style definition
codeSafari10 Jul 28, 2024
bab97ae
ts types
codeSafari10 Jul 28, 2024
e82e8be
rename properties
codeSafari10 Jul 28, 2024
576fd9a
remove redundant semver check
codeSafari10 Jul 28, 2024
02bf1b5
add view kind
codeSafari10 Jul 29, 2024
19f093b
build ts library
codeSafari10 Jul 29, 2024
13a2ad5
add status for component
codeSafari10 Jul 29, 2024
0728b0a
split relationship styles between kinds
codeSafari10 Jul 30, 2024
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
50 changes: 25 additions & 25 deletions build/latest_release.sh
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
#!/bin/bash
# GIT_REF=`git symbolic-ref HEAD`
# if [[ $GIT_REF = refs/tags* ]]
# then
# RELEASE_CHANNEL="stable"
# # export RELEASE_CHANNEL="stable"
# else
# RELEASE_CHANNEL="edge"
# # export RELEASE_CHANNEL="edge"
# fi
# # echo "Release channel determined to be $RELEASE_CHANNEL"
# LATEST_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`)
GIT_REF=`git symbolic-ref HEAD`
if [[ $GIT_REF = refs/tags* ]]
then
RELEASE_CHANNEL="stable"
# export RELEASE_CHANNEL="stable"
else
RELEASE_CHANNEL="edge"
# export RELEASE_CHANNEL="edge"
fi
echo "Release channel determined to be $RELEASE_CHANNEL"
echo LATEST_VERSION=$(git describe --tags `git rev-list --tags --max-count=1` --always)
echo GIT_VERSION=$(git describe --tags `git rev-list --tags --max-count=1` --always)
echo GIT_STRIPPED_VERSION=$(git describe --tags `git rev-list --tags --max-count=1` --always | cut -c 2-)
#!/usr/bin/env bash
# GIT_REF=`git symbolic-ref HEAD`
# if [[ $GIT_REF = refs/tags* ]]
# then
# RELEASE_CHANNEL="stable"
# # export RELEASE_CHANNEL="stable"
# else
# RELEASE_CHANNEL="edge"
# # export RELEASE_CHANNEL="edge"
# fi
# # echo "Release channel determined to be $RELEASE_CHANNEL"
# LATEST_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`)
GIT_REF=`git symbolic-ref HEAD`
if [[ $GIT_REF = refs/tags* ]]
then
RELEASE_CHANNEL="stable"
# export RELEASE_CHANNEL="stable"
else
RELEASE_CHANNEL="edge"
# export RELEASE_CHANNEL="edge"
fi
echo "Release channel determined to be $RELEASE_CHANNEL"
echo LATEST_VERSION=$(git describe --tags `git rev-list --tags --max-count=1` --always)
echo GIT_VERSION=$(git describe --tags `git rev-list --tags --max-count=1` --always)
echo GIT_STRIPPED_VERSION=$(git describe --tags `git rev-list --tags --max-count=1` --always | cut -c 2-)
# env
4 changes: 2 additions & 2 deletions compile-types.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ traverse_directory() {
# Start traversing from the provided input directory
traverse_directory "$INPUT_DIR"

# Generate OpenApi types from single openapi.yaml file
# Generate OpenApi types from single openapi.yaml file
OPENAPI_FILE="$INPUT_DIR/openapi.yml"
if [ -f "$OPENAPI_FILE" ]; then
npx openapi-typescript "$OPENAPI_FILE" --output "$OUTPUT_DIR/openapi.d.ts"
Expand All @@ -74,4 +74,4 @@ else
fi


echo "Processing complete. Output files are in '$OUTPUT_DIR'."
echo "Processing complete. Output files are in '$OUTPUT_DIR'."
Loading
Loading