protected void ParseSchemas()
        {
            foreach (var shape in raml.Shapes)
            {
                if (shape == null)
                {
                    continue;
                }
                if (schemaObjects.ContainsKey(shape.Id))
                {
                    continue;
                }

                if (ids.Contains(shape.Id))
                {
                    continue;
                }

                ids.Add(shape.Id);

                var key         = shape.Name;
                var id          = Guid.NewGuid();
                var newElements = objectParser.ParseObject(id, key, shape, schemaObjects, warnings, enums, isRootType: true);

                AddNewElements(newElements);
            }
        }
Exemple #2
0
        protected void ParseSchemas()
        {
            foreach (var shape in raml.Shapes)
            {
                if (shape == null)
                {
                    continue;
                }

                var key = shape.Name;

                var newElements = objectParser.ParseObject(key, shape, schemaObjects, warnings, enums, isRootType: true);

                AddNewElements(newElements);
            }
        }