10000 feat(Schema): Support ROS Schema by ChanDaoH · Pull Request #830 · alibaba/funcraft · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat(Schema): Support ROS Schema #830

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

Merged
merged 1 commit into from
Mar 27, 2020
Merged

Conversation

ChanDaoH
Copy link
Collaborator
  1. 全面支持 ROS Schema
  2. 优化报错样式

假设当前的 tpl 为

ROSTemplateFormatVersion: '2015-09-01'
Transform: 'Aliyun::Serverless-2018-04-03'
Resources:
  demo: # service name
    Type: 'Aliyun::Serverless::Service'
    Properties:
      Description: This is FC service
      VpcConfig:
        VSwitchIds: ["switchId"]
        SecurityGroupId:
          'Fn::GetAtt':
            - SecurityGroup_default
            - SecurityGroupId
    func01: # function name
      Type: 'Aliyun::Serverless::Functiona'
      Properties:
        Handler: index.handler
        Runtime: nodejs8
        CodeUri: ./
        MemorySize: 1024
        Timeout: 15

image

执行 fun validate 后, 报错内容为:

fun ERR! required Resources/rds-mysql/Properties/VpcConfig: Missing property VpcId
fun ERR! value Resources/rds-mysql/nodejs/Type: Value is not accepted. Valid values: "Aliyun::Serverless::Function"

image

@ChanDaoH ChanDaoH requested review from vangie and tanhe123 March 27, 2020 03:37
@ChanDaoH ChanDaoH B63A force-pushed the zechen/feat-support-ros-schema branch from 434bb7e to f0639e3 Compare March 27, 2020 04:45
@ChanDaoH ChanDaoH force-pushed the zechen/feat-support-ros-schema branch from f0639e3 to 888f22b Compare March 27, 2020 04:47
@ChanDaoH ChanDaoH force-pushed the zechen/feat-support-ros-schema branch from 888f22b to 084056d Compare March 27, 2020 05:04
@ChanDaoH ChanDaoH merged commit b768749 into master Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0